Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Wizard error & solution Collapse All
Subject Author Date
Peter Goodsall Mar 10, 2004 - 8:38 AM

Environment: Windows XP, MS Visual C++ 6.0


When using the Prof-UIS new project wizard to generate a doc/view architecture, the compiler has thrown up the following errors:


D:\...\WPView.cpp(190) : error C2079: ’info’ uses undefined struct ’AFX_CMDHANDLERINFO’
D:\...\WPView.cpp(191) : error C2664: ’OnCmdMsg’ : cannot convert parameter 4 from ’int *’ to ’struct AFX_CMDHANDLERINFO *’


These errors can be eliminated by inserting the following into stdafx.h:


#include <afxpriv.h>


( This MFC include file contains the necessary structure definition ).

Peter Goodsall Mar 10, 2004 - 8:46 AM

Have just seen that the formatting has fouled up:


the file include should, of course, be:


#include <afxpriv.h>

Technical Support Mar 12, 2004 - 10:27 AM

Dear Peter,

Thank you for reporting the bug! We are working on this issue now and will try to fix it as soon as possible.