![]() |
|
QA: How to fix when the class wizard says 'Parsing error: Expected "afx_msg".'?
By Vassili Philippov, January 03, 2002.
QuestionI have just created a new application using "WCE Pocket PC MFC AppWizard (exe)" template, opened the class wizard and got the following error message: 'Parsing error: Expected "afx_msg".'. How can I fix it? Answer
You will see the following error message: That is because standard template generates wrong code. You have to correct it and the class wizard will work OK. Change generated codeIn MainFrm.h file you will find the following code: You have to move 2 lines that starts with LPTSTR from the AFX_MSG section. You code should be: After that the class wizard will work. It seems like a bug in the project template. Related resources:
DiscussDiscuss this article. Here you can write your comments and read comments of other developers. |
|||||||||||||||||||||