![]() |
|
#1
|
|||
|
|||
Simple Window Application Using MFCHello everyone, i truly new to window programming.
My code as below: CPP / C++ / C Code:
CPP / C++ / C Code:
Error Message as below: Quote:
Thanks for oyur help. I really need your help. Your help is greatly appreciated by me and others. Last edited by LuciWiz : 09-Sep-2007 at 03:17.
Reason: One of the code snipets didn't use [cpp] tags...
|
|||
|
#2
|
|||
|
|||
Re: Simple Window Application Using MFC1.
I believe what it's saying is your overload of InitInstance has a different return type which it can't have. What's the original return type of InitInstance from your base, CWinApp? 2. LPCTSTR; L Pointer to Const TCHAR string. It means it should be cast (I doubt I'm using that word right) to UNICODE, whereas right now, it's an ANSI string. Try this: CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Simple Window Application Using MFC2 is solved by me but the first one. I still cannot solved it.
Thanks for your help. |
|
#4
|
|||
|
|||
Re: Simple Window Application Using MFCQuote:
should be writen like this BOOL InitInstance(); and return type return TRUE; |
|
#5
|
|||
|
|||
Re: Simple Window Application Using MFCThe problem solved. The title should display this LPCTSTR AppTitle = "MFC Fundametals"; How come the title display in the bar is not what i wroted ?
|
|
#6
|
|||
|
|||
Re: Simple Window Application Using MFCThe title bar display some unknown character such as [][[][]][][][][]][]. How to solve this ?
|
|
#7
|
|||
|
|||
Re: Simple Window Application Using MFCAs you all know the application frame us create calling the create method inside the constructor but how come we still need to send a message to the operating system and create the application frame.
CPP / C++ / C Code:
CPP / C++ / C Code:
I don't understand the window message handling techniques. Thanks for your explanation and help. |
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Child window creation from a dialog based application | CyberFriend | MS Visual C++ / MFC Forum | 0 | 06-Nov-2006 06:51 |
| need help with a console menu system | BullBuchanan | C++ Forum | 6 | 20-Aug-2006 14:46 |
| help | rajusb | MS Visual C++ / MFC Forum | 24 | 28-Nov-2005 22:35 |
| Simple Calculator Application | MOHAMMEDALI1989 | Java Forum | 1 | 06-Oct-2005 17:00 |
| Help! Some basal questions about MFC | xutingnjupt | MS Visual C++ / MFC Forum | 1 | 05-Dec-2004 03:38 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The