hi
i downloaded the src for v 0.99c and trying to compile with MsVC++ 7... and i get a bunch of error messages. could it be because of MsVC++7 ? should i use VC++6?
the error are below...
best regards
Compiling...
StdAfx.cpp
Compiling...
XPStyleButtonST.cpp
XHyperLink.cpp
WindowGroups.cpp
TranslateEx.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
ThemeHelperST.cpp
SystemTrayEx.cpp
SystemTray.cpp
SecureEditEx.cpp
NewGUICommon.cpp
KCSideBannerWnd.cpp
GradientProgressCtrl.cpp
ColourPickerXP.cpp
CeXDib.cpp
BtnST.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
BCMenu.cpp
AutoRichEditCtrl.cpp
amsEdit.cpp
twofish.cpp
twoclass.cpp
testimpl.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(126) : error C2059: syntax error : 'bad suffix on number'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(126) : warning C4309: '=' : truncation of constant value
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(126) : error C2146: syntax error : missing ';' before identifier 'l'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(126) : error C2065: 'l' : undeclared identifier
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(131) : error C2059: syntax error : 'bad suffix on number'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(131) : error C2146: syntax error : missing ')' before identifier 'l'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(131) : error C2059: syntax error : ')'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(131) : error C2146: syntax error : missing ';' before identifier 'uTestMask'
Generating Code...
Compiling...
sha2.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : error C2059: syntax error : 'bad suffix on number'
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : warning C4305: 'initializing' : truncation from 'unsigned __int64' to 'const sha2_64t'
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : warning C4309: 'initializing' : truncation of constant value
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : error C2146: syntax error : missing '}' before identifier 'l'
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : error C2146: syntax error : missing ';' before identifier 'l'
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : fatal error C1075: end of file found before the left brace '{' at 'c:\KeePass-0.99c-Src\Crypto\sha2.cpp(443)' was matched
rijndael.cpp
arcfour.cpp
WinUtil.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
StrUtil.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
SInstance.cpp
PrivateConfig.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
NewRandom.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
MemUtil.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
base64.cpp
PluginMgr.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwUtil.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwManager.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwImport.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwExport.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwCompat.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
TanWizardDlg.cpp
PwSafeDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
c:\KeePass-0.99c-Src\PwSafeDlg.cpp(414) : error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CPwSafeDlg::* )(CWnd *,COPYDATASTRUCT *)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
PwSafe.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwGeneratorDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
Generating Code...
Compiling...
PluginsDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PasswordDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
OptionsDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
LanguagesDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
IconPickerDlg.cpp
GetRandomDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
FindInDbDlg.cpp
EntryPropertiesDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
EntryListDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
DbSettingsDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
CheckOptionsDlg.cpp
AddGroupDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
AddEntryDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
Generating Code...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was only able to reproduce one of the errors you list. I'm using MS VC++ 7.1, a much more C++-standards-compliant compiler, significantly different from 7.0. Are you using 7.0?
The only compile error I found in 99c is as follows. It must have been introduced since version 98b, because it didn't occur there.
PwSafeDlg.cpp(414) : error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CPwSafeDlg::* )(CWnd *,COPYDATASTRUCT *)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)' None of the functions with this name in scope match the target type
This error is saying that it doesn't like the member function parameter types and return type declared for CPwSafeDlg::OnCopyData(). This error can be eliminated by declaring "afx_msg LRESULT OnCopyData(WPARAM, LPARAM);" and then casting the parameters inside the function body to CWnd* and COPYDATASTRUCT* respectively.
I also found two warning messages. The first one is:
PwSafe.cpp(60) : warning C4996: 'CWinApp::Enable3dControlsStatic' was declared deprecated
Current MFC documentation says, "In MFC 5.0, Enable3dControls and Enable3dControlsStatic are obsolete because their functionality is incorporated into Microsoft's 32-bit operating systems." This warning can be eliminated by testing for MFC version number as follows:
Sometimes, when try to download a page or page some other page, always complain page error, "Obeject doesn't support this property or method, and now display the URL that anm trying to view. also show
Line: 1
Char: 1
I need some guide or help to tackle with this error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi
i downloaded the src for v 0.99c and trying to compile with MsVC++ 7... and i get a bunch of error messages. could it be because of MsVC++7 ? should i use VC++6?
the error are below...
best regards
Compiling...
StdAfx.cpp
Compiling...
XPStyleButtonST.cpp
XHyperLink.cpp
WindowGroups.cpp
TranslateEx.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
ThemeHelperST.cpp
SystemTrayEx.cpp
SystemTray.cpp
SecureEditEx.cpp
NewGUICommon.cpp
KCSideBannerWnd.cpp
GradientProgressCtrl.cpp
ColourPickerXP.cpp
CeXDib.cpp
BtnST.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
BCMenu.cpp
AutoRichEditCtrl.cpp
amsEdit.cpp
twofish.cpp
twoclass.cpp
testimpl.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(126) : error C2059: syntax error : 'bad suffix on number'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(126) : warning C4309: '=' : truncation of constant value
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(126) : error C2146: syntax error : missing ';' before identifier 'l'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(126) : error C2065: 'l' : undeclared identifier
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(131) : error C2059: syntax error : 'bad suffix on number'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(131) : error C2146: syntax error : missing ')' before identifier 'l'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(131) : error C2059: syntax error : ')'
c:\KeePass-0.99c-Src\Crypto\testimpl.cpp(131) : error C2146: syntax error : missing ';' before identifier 'uTestMask'
Generating Code...
Compiling...
sha2.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : error C2059: syntax error : 'bad suffix on number'
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : warning C4305: 'initializing' : truncation from 'unsigned __int64' to 'const sha2_64t'
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : warning C4309: 'initializing' : truncation of constant value
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : error C2146: syntax error : missing '}' before identifier 'l'
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : error C2146: syntax error : missing ';' before identifier 'l'
c:\KeePass-0.99c-Src\Crypto\sha2.cpp(444) : fatal error C1075: end of file found before the left brace '{' at 'c:\KeePass-0.99c-Src\Crypto\sha2.cpp(443)' was matched
rijndael.cpp
arcfour.cpp
WinUtil.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
StrUtil.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
SInstance.cpp
PrivateConfig.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
NewRandom.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
MemUtil.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
base64.cpp
PluginMgr.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwUtil.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwManager.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwImport.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwExport.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwCompat.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
TanWizardDlg.cpp
PwSafeDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
c:\KeePass-0.99c-Src\PwSafeDlg.cpp(414) : error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CPwSafeDlg::* )(CWnd *,COPYDATASTRUCT *)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
PwSafe.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PwGeneratorDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
Generating Code...
Compiling...
PluginsDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
PasswordDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
OptionsDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
LanguagesDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
IconPickerDlg.cpp
GetRandomDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
FindInDbDlg.cpp
EntryPropertiesDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
EntryListDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
DbSettingsDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
CheckOptionsDlg.cpp
AddGroupDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
AddEntryDlg.cpp
c:\KeePass-0.99c-Src\Crypto\sha2.h(67) : error C2632: 'long' followed by 'long' is illegal
Generating Code...
I was only able to reproduce one of the errors you list. I'm using MS VC++ 7.1, a much more C++-standards-compliant compiler, significantly different from 7.0. Are you using 7.0?
The only compile error I found in 99c is as follows. It must have been introduced since version 98b, because it didn't occur there.
PwSafeDlg.cpp(414) : error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CPwSafeDlg::* )(CWnd *,COPYDATASTRUCT *)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)' None of the functions with this name in scope match the target type
This error is saying that it doesn't like the member function parameter types and return type declared for CPwSafeDlg::OnCopyData(). This error can be eliminated by declaring "afx_msg LRESULT OnCopyData(WPARAM, LPARAM);" and then casting the parameters inside the function body to CWnd* and COPYDATASTRUCT* respectively.
I also found two warning messages. The first one is:
PwSafe.cpp(60) : warning C4996: 'CWinApp::Enable3dControlsStatic' was declared deprecated
Current MFC documentation says, "In MFC 5.0, Enable3dControls and Enable3dControlsStatic are obsolete because their functionality is incorporated into Microsoft's 32-bit operating systems." This warning can be eliminated by testing for MFC version number as follows:
#if _MFC_VER < 0x0500
#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic();
#endif
#endif
The second warning message is:
pwmanager.cpp(331) : warning C4702: unreachable code
This warning can be eliminated by removing the last line of CPwManager::SetMasterKey().
Bill Rubin
Same errors in Microsoft Visual Studio .NET 2002 (Version 7.0)
But if you change in Crypto\sha2.h Line 60 from:
#if _MSC_VER < 1300
to:
#if _MSC_VER <= 1300
than it will work fine.
Sometimes, when try to download a page or page some other page, always complain page error, "Obeject doesn't support this property or method, and now display the URL that anm trying to view. also show
Line: 1
Char: 1
I need some guide or help to tackle with this error.