Click here to Skip to main content
15,885,979 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
There is a class inherits from CPropertySheetImpl, when I do something like bellowing:
CMyPropertySheet sheet( _T("My Sheet") );
if ( IDOK == sheet.DoModal() ) {
//...
}

It works well on English Windows XP, but when it runs on a German Windows XP VM, sheet.DoModal() returns -1.
I have no idea what might cause this, anyone can help?
Posted
Updated 31-Mar-10 23:12pm
v2

szh121 wrote:
There is a class inherits from CPropertySheetImpl


Why not from CPropertySheet ? :)
 
Share this answer
 
See the doc for PropertySheet Function[^], and notice:
For modal property sheets, the return value is as follows:
>=1 Changes were saved by the user.
0 No changes were saved by the user.
-1 An error occurred
To retrieve extended error information, call GetLastError.


cheers,
AR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900