Archived

This topic is now archived and is closed to further replies.

query Windows to create instance

This topic is 5804 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

if i got a app that starts at main, like a win32 console app, i imagine that there is a way to get windows to start an instance, and send hinst and stuff to a callback, winmain. anyone have any idea about that? /no replies saying "why would you want to do that?"

Share this post


Link to post
Share on other sites
Yes. Just set everything up the same way that you would for WinMain.
Register a WNDCLASS, with a WndProc and use GetModuleHandle(NULL) for hInst. Create the window, show it and loop for messages.

Share this post


Link to post
Share on other sites