Question/Issue how do I implement the console system from the demo.cpp file? #5889
PsychoCoffee
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 1 comment 1 reply
-
This is a C++ literacy question and not a dear imgui question so I closed the Issue and moved to Discussion but you could be discussing this anywhere C++ is being discussed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I am trying to implement the simple code for the console from the demo cpp file, but I can't seem to get it to work.
I'm trying to put it in a seperate script named Console.cpp and Console.h, but the code (which is a bit confusing to me) is a struct, and Not sure how I should correctly put it in a script which can be called from everywhere else...
I did try removing the struct and making every function inside the struct it's own void but it's giving me a unresolved external symbol error.
I was reading the FAQ and such but I couldn't find a guide to using the code from the demo in your own project.
Example (basically, I copied the whole region/marked area and pasted it in, without the struct):
// A.cpp
//A.h
And then in the main application, I'd include the A.h file and at the part for imgui, I'd do:
I am very new to c++ (mostly structs and imgui) so I need more practice to get it to work.
Beta Was this translation helpful? Give feedback.
All reactions