Click to See Complete Forum and Search --> : HINSTANCE question


sublime99
March 4th, 2008, 04:30 PM
I wish to create a window in my application in addition to the main window. Can I use the HINSTANCE received in int WINAPI WinMain(HINSTANCE hInst,HINSTANCE,LPSTR pStr,int nCmd) or can I use NULL or 0

Thanks

Igor Vartanov
March 5th, 2008, 06:23 AM
While creating window, provided hInstance must be NULL or equal to hInstance registered to window class.