![]() |
|
#1
|
|||
|
|||
Creating a new Window: m_hWnd not initializing?Hello,
I am creating a new window in MFC and have found out that the m_hWnd is not getting initialized. Here is my code: CPP / C++ / C Code:
This goes to a new .cpp where i am calling a SetTimer() function as: CPP / C++ / C Code:
Where I get a debug error as: m_hWnd 0x00000000 {unused=??? } HWND__ * __________________________________________________ _______________ My overall question is: Why isn't m_hWnd getting initialized? Thanks for any help on this topic. Last edited by LuciWiz : 30-Sep-2009 at 11:37.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags; Removed personal information
|
|||
|
#2
|
|||
|
|||
Re: Creating a new Window: m_hWnd not initializing?have you tried
INT_PTR result = dlg->DoModal(); instead of the showwindow |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error compiling Apache 2.2.10 | tiagofgarcia | Apache Web Server Forum | 2 | 10-Nov-2009 14:31 |
| Traditional Win32 programming vs. wxWidgets | Zorachus | C++ Forum | 2 | 10-Feb-2007 18:54 |
| need help with a console menu system | BullBuchanan | C++ Forum | 6 | 20-Aug-2006 15:46 |
| Win32 Window Shading behavior (like linux) | WillyumYum | C++ Forum | 3 | 18-Apr-2005 15:36 |
| Changing window start colour | Rosdahale | C++ Forum | 5 | 19-Jan-2005 16:51 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The