![]() |
| ||
| Problem Creating Window First, I prepared the class blow : class UserDefinedWindow And the main() block of the program is... int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) And finally the problem is, nothing appears. Program seems to be running, but no window appears on the screen. There is no errors or even warnings given. Can you give an idea why the window doesn't pop up? Notes ----- -Compiler is Visual Studio 2005. -I didn't use ShowWindow(), because WS_VISIBLE already exists in dwStyle. -hInstance is global defined variable. |
| ||
| Re: Problem Creating Window This part returns NULL. hWnd = CreateWindowEx( (DWORD) dwExStyle, |
| ||
| Re: Problem Creating Window Thanks for your help. It OK now! VOID ErrorTest(LPSTR lpzsErrorText); ClassName was defined as the name of the class, but in the WNDCLASSEX structure, lpClassName was used. So, because of not matching the class names in WNDCLASSEX and CreateWindowEx(), the system returned the error : Error Code :1407 Meaning :Cannot find window class. Constant :ERROR_CANNOT_FIND_WND_CLASS Now the code is error-free. |
| ||
| Re: Problem Creating Window Peace... Can anyone explain that more, step by step. |
| ||
| Re: Problem Creating Window Quote:
Second, you start a new thread, making sure you have done your part to follow the rules of posting. Third, you link or point to the old conversation, if it is relevant to what you are going to ask. Fourth, you ask in a clear and intelligent way, what your question is, and how you would like to obtain help. Fifth, you wait patiently, for someone to be gracious enough to take the time to respond. Sixth, you show gratitude, and mark the post solved if your problem has been resolved or question has been answered satisfactory. [Disclaimer] Steps are only a guide to understanding, and not absolute nor authoritative in nature. Differences in personality may or may not lengthen or shorten the measure of the stride. |
| ||
| Re: Problem Creating Window Thaks for help, I'll fix that.... |
| All times are GMT -4. The time now is 11:25 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC