can't use CPropertySheet constructor???
-
CPropertySheet properties(_T("вфыавав"), this, 0);//error C2664: 'CPropertySheet::CPropertySheet(UINT,CWnd *,UINT)' : cannot convert parameter 1 from 'const wchar_t [13]' to 'UINT' ??? but CPropertySheet have constructor with LPCTSTR as the 1st parameter explicit CPropertySheet( LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0 );
-
CPropertySheet properties(_T("вфыавав"), this, 0);//error C2664: 'CPropertySheet::CPropertySheet(UINT,CWnd *,UINT)' : cannot convert parameter 1 from 'const wchar_t [13]' to 'UINT' ??? but CPropertySheet have constructor with LPCTSTR as the 1st parameter explicit CPropertySheet( LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0 );
Based on your other question I'd say you probably have
_UNICODE
defined (which causes_T("")
to becomeL""
) but notUNICODE
, which causesLPCTSTR
to becomeLPCWSTR
rather thanLPCSTR
. Stability. What an interesting concept. -- Chris Maunder