I've created a windows application in c++ through platinum SDK. When i run this app, it'll run in command prompt Now, i want to run it from windows so i managed it to run in windows But, the problem is that i can't run the app in command prompt and windows concurrently. It only allows me to run either in windows or in command prompt (not both) Can anybody lead me to the correct path.
The idea is that you're responding to events, and you are notified of these events thru that callback function. So the system calls your WndProc and tells you the object that generated the callback (hWnd), the event (message), and event/message specific parameters (wParam, lParam).
The callback will have different handlers for each message type and might look like:
So that CreateWindow() call you have, will be called in response to something happening. So it needs to be in the correct handler.
That's why the question is confusing because you're ignoring the context in which you want to create a Windows. If that is the first window being created, then of course, it doesn't get called in response to something, but perhaps part of the application startup sequence.
Thanks again
I already did coded as exact as you stated above.
And i just wanna let you know that i'm creating one.cpp from that code.
It worked fine but this wasn't my problem.
Okay. Let's say
I created a textbox with the above code.
Now, i supposed to another create cpp file (second.cpp)
Again and again my question from the beginning is
how to get the textbox value from the second.cpp