Hi,
I hd made MFC application in VC++ 2005 and i need. It compiles successfully in 32 bit mode but when i try to compile it on 64 bit mode i get following errors.
1>------ Build started: Project: ProgressBar, Configuration: Debug x64 ------ 1>Compiling... 1>stdafx.cpp 1>C:\Program Files\Microsoft Platform SDK\Include\mfc\afxv_w32.h(120) : warning C4005: '_WIN32_WINDOWS' : macro redefinition 1>
d:\systemtray\progressbar\progressbar\stdafx.h(22) : see previous definition of '_WIN32_WINDOWS' 1>C:\Program Files\Microsoft Platform SDK\Include\mfc\afxcom_.h(309) : warning C4812: obsolete declaration style: please use '_CIP<_Interface,_IID>::CIP' instead 1>C:\Program Files\Microsoft Platform SDK\Include\mfc\afxcom.h(315) : warning C4812: obsolete declaration style: please use '_CIP<_Interface,_IID>::~CIP' instead 1>C:\Program Files\Microsoft Platform SDK\Include\mfc\afxcom.h(309) : warning C4812: obsolete declaration style: please use '_CIP<_Interface,_IID>::_CIP' instead 1> with 1> [ 1>
_Interface=IUnknown, 1> _IID=& IID_IUnknown 1> ] 1> C:\Program Files\Microsoft Platform SDK\Include\mfc\afxcom_.h(310) : while compiling class template member function '_CIP<_Interface,_IID>::_CIP(void)' 1> with 1> [ 1>
_Interface=IUnknown, 1> _IID=& IID_IUnknown 1> ] 1> C:\Program Files\Microsoft Platform SDK\Include\mfc\afxcom_.h(402) : see reference to class template instantiation '_CIP<_Interface,_IID>' being compiled 1> with 1>
[ 1> _Interface=IUnknown, 1> _IID=& IID_IUnknown 1>
] 1>C:\Program Files\Microsoft Platform SDK\Include\mfc\afxcom_.h(315) : warning C4812: obsolete declaration style: please use '_CIP<_Interface,_IID>::~_CIP' instead 1> with 1> [ 1>
_Interface=IUnknown, 1> _IID=& IID_IUnknown 1> ] 1> C:\Program Files\Microsoft Platform SDK\Include\mfc\afxcom_.h(316) : while compiling class template member function '_CIP<_Interface,_IID>::~_CIP(void)' 1> with 1> [ 1>
_Interface=IUnknown, 1> _IID=& IID_IUnknown 1> ] 1>Compiling... 1>progressbarclass.cpp 1>.\progressbarclass.cpp(50) : error C2143: syntax error : missing ')' before '::*' 1>.\progressbarclass.cpp(50) : error C2059: syntax error : ')' 1>.\progressbarclass.cpp(50) : error C2143: syntax error : missing ';' before '}' 1>.\progressbarclass.cpp(50) : error C2059: syntax error : '}' 1>.\progressbarclass.cpp(51) : error C2143: syntax error : missing ';' before '{' 1>.\progressbarclass.cpp(51) : error C2447: '{' : missing function header (old-style formal list?) 1>.\progressbarclass.cpp(51) : error C2059: syntax error : ',' 1>.\progressbarclass.cpp(52) : error C2143: syntax error : missing ';' before '{' 1>.\progressbarclass.cpp(52) : error C2447: '{' : missing function header (old-style formal list?) 1>.\progressbarclass.cpp(52) : error C2059: syntax error : ',' 1>.\progressbarclass.cpp(53) : error C2143: syntax error : missing ';' before '{' 1>.\progressbarclass.cpp(53) : error C2447: '{' : missing function header (old-style formal list?) 1>.\progressbarclass.cpp(53) : error C2059: syntax error : ',' 1>.\progressbarclass.cpp(54) : error C2143: syntax error : missing ';' before '{' 1>.\progressbarclass.cpp(54) : error C2447: '{' : missing function header (old-style formal list?) 1>.\progressbarclass.cpp(54) : error C2059: syntax error : ',' 1>.\progressbarclass.cpp(55) : error C2143: syntax error : missing ';' before '{' 1>.\progressbarclass.cpp(55) : error C2447: '{' : missing function header (old-style formal list?) 1>.\progressbarclass.cpp(55) : error C2059: syntax error : '}' 1>.\progressbarclass.cpp(71) : error C2039: 'SetBkColor' : is not a member of 'CProgressCtrl' 1>
C:\Program Files\Microsoft Platform SDK\Include\mfc\afxcmn.h(495) : see declaration of 'CProgressCtrl' 1>WrapperDialog.cpp 1>d:\systemtray\progressbar\progressbar\WrapperDialog.h(12) : warning C4251: 'CWrapperDialog::objprogress' : class 'ProgressBarClass' needs to have dll-interface to be used by clients of class 'CWrapperDialog' 1>
d:\systemtray\progressbar\progressbar\ProgressBarClass.h(8) : see declaration of 'ProgressBarClass' 1>.\WrapperDialog.cpp(66) : warning C4996: 'mbstowcs': This function or variable may be unsafe. Consider using mbstowcs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdlib.h(537) : see declaration of 'mbstowcs' 1>Generating Code... 1>Build log was saved at "file://d:\SystemTray\ProgressBar\ProgressBar\x64\Debug\BuildLog.htm" 1>ProgressBar - 20 error(s), 7 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
on this function
BEGIN_MESSAGE_MAP(ProgressBarClass, CDialog)
ON_WM_CLOSE()
ON_NOTIFY(NM_CUSTOMDRAW, IDC_PROGRESS1, &ProgressBarClass::OnNMCustomdrawProgress1)
ON_BN_CLICKED(IDC_BUTTON1, &ProgressBarClass::OnBnClickedButton1)
ON_BN_CLICKED(IDC_BUTTON2, &ProgressBarClass::OnBnClickedButton2)
ON_BN_CLICKED(IDC_BUTTON3, &ProgressBarClass::OnBnClickedButton3)
ON_WM_PAINT()
END_MESSAGE_MAP()
How can i fix this error on 64 bit
plz hlp
Abdul Khaliq