[C++] VS6 Prj. mit VS2005 builden ?

exportforce

Avachangererfinder
ID: 68278
L
23 April 2006
256
22
Hallo,

ich habe heute ein neues Projekt bekommen welches mit Visual Studio 6 erstellt wurde, ich habe allerdings nur das Visual Studio 2005 hier und wollte einmal nachfragen, ob es möglich ist, eine 6er build zu emulieren, so dass VS das builden kann, denn so bekomme ich ein paar Fehler und einen haufen Warnungen.

danke schon mal.
 
Ohne, das 2005er zu kennen: Reicht es denn nicht, Compiler und Linker gleich zu konfigurieren, was den Warnlevel betrifft ? :think:

Für die Fehler wärs halt gut zu wissen, was das für Fehler sind. Ich hab vor Jahren mal versucht, 'n QuickC-Programm unter Borland C und n Code, der im Borland C geschrieben war, im Visual Studio zu kompilieren. Da haben halt jeweils die Bibliotheken ned gepasst, was dann zu Fehlermeldungen geführt hat.
 
ähm, Visual Studio 6 ist älter als 2005

Und es gibt dort nen Importassistenten, wenn ich recht entsinne

So war das "nur" auch nicht gemeint ;-)
Eher das ich halt "NUR" die 2005er habe und leider nicht die 6er um mit dieser zu arbeiten ;-)

Wo finde ich diesen Importassi ?
Ich bin grad am suchen, aber nichts am finden.

edit:

------ Build started: Project: unp90, Configuration: Debug Win32 ------
Compiling...
Bmpview.cpp
.\Bmpview.cpp(71) : error C2440: 'static_cast' : cannot convert from 'void (__thiscall CBmpView::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
CDChangeDlg.cpp
.\CDChangeDlg.cpp(107) : error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CCDChangeDlg::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
Cast from base to derived requires dynamic_cast or static_cast
CreditsDlg.cpp
.\CreditsDlg.cpp(55) : error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CCreditsDlg::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
Cast from base to derived requires dynamic_cast or static_cast
DownLoadDlg.cpp
.\DownLoadDlg.cpp(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
HexEditDlg.cpp
.\HexEditDlg.cpp(231) : error C2440: 'static_cast' : cannot convert from 'void (__thiscall CHexEditDlg::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
HtmlWindow.cpp
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\mshtml.h(5204) : error C2365: 'True' : redefinition; previous definition was 'data variable'
e:\unprotect source\common\unpdefs.h(5) : see declaration of 'True'
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\mshtml.h(5205) : error C2365: 'False' : redefinition; previous definition was 'data variable'
e:\unprotect source\common\unpdefs.h(4) : see declaration of 'False'
MainFrm.cpp
e:\unprotect source\unp\ZipInfoDlg.h(86) : warning C4996: 'stricmp' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\string.h(213) : see declaration of 'stricmp'
Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. See online help for details.'
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\mshtml.h(5204) : error C2365: 'True' : redefinition; previous definition was 'data variable'
e:\unprotect source\common\unpdefs.h(5) : see declaration of 'True'
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\mshtml.h(5205) : error C2365: 'False' : redefinition; previous definition was 'data variable'
e:\unprotect source\common\unpdefs.h(4) : see declaration of 'False'
MainListBox.cpp
.\MainListBox.cpp(93) : error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainListBox::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
MultiPicListBox.cpp
.\MultiPicListBox.cpp(18) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
SettingsDlg.cpp
.\SettingsDlg.cpp(49) : error C2440: 'static_cast' : cannot convert from 'void (__thiscall CSettingsDlg::* )(UINT,LONG)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
SplashWnd.cpp
.\SplashWnd.cpp(23) : warning C4005: 'LWA_ALPHA' : macro redefinition
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(3875) : see previous definition of 'LWA_ALPHA'
.\SplashWnd.cpp(24) : warning C4005: 'WS_EX_LAYERED' : macro redefinition
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(2418) : see previous definition of 'WS_EX_LAYERED'
.\SplashWnd.cpp(262) : error C2593: 'operator +=' is ambiguous
E:\Programme\Microsoft Visual Studio 8\VC\atlmfc\include\cstringt.h(1372): could be 'ATL::CStringT<BaseType,StringTraits> &ATL::CStringT<BaseType,StringTraits>::eek:perator +=(wchar_t)'
with
[
BaseType=char,
StringTraits=StrTraitMFC_DLL<char>
]
E:\Programme\Microsoft Visual Studio 8\VC\atlmfc\include\cstringt.h(1365): or 'ATL::CStringT<BaseType,StringTraits> &ATL::CStringT<BaseType,StringTraits>::eek:perator +=(unsigned char)'
with
[
BaseType=char,
StringTraits=StrTraitMFC_DLL<char>
]
E:\Programme\Microsoft Visual Studio 8\VC\atlmfc\include\cstringt.h(1358): or 'ATL::CStringT<BaseType,StringTraits> &ATL::CStringT<BaseType,StringTraits>::eek:perator +=(char)'
with
[
BaseType=char,
StringTraits=StrTraitMFC_DLL<char>
]
while trying to match the argument list '(CString, int)'
TextEditorView.cpp
.\TextEditorView.cpp(85) : error C2440: 'static_cast' : cannot convert from 'void (__thiscall CTextEditorView::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
UNP90.CPP
.\UNP90.CPP(32) : warning C4005: 'LWA_ALPHA' : macro redefinition
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(3875) : see previous definition of 'LWA_ALPHA'
.\UNP90.CPP(33) : warning C4005: 'WS_EX_LAYERED' : macro redefinition
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(2418) : see previous definition of 'WS_EX_LAYERED'
.\UNP90.CPP(89) : warning C4996: 'CWinApp::Enable3dControls' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\atlmfc\include\afxwin.h(4471) : see declaration of 'CWinApp::Enable3dControls'
Message: 'CWinApp::Enable3dControls is no longer needed. You should remove this call.'
.\UNP90.CPP(201) : error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CAboutDlg::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
Cast from base to derived requires dynamic_cast or static_cast
UPMFILE.CPP
..\Common\UPMFILE.CPP(268) : warning C4996: 'strcpy' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(372) : warning C4996: 'stricmp' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\string.h(213) : see declaration of 'stricmp'
Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. See online help for details.'
..\Common\UPMFILE.CPP(373) : warning C4996: 'stricmp' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\string.h(213) : see declaration of 'stricmp'
Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. See online help for details.'
..\Common\UPMFILE.CPP(450) : warning C4996: 'fopen' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(504) : warning C4996: 'fopen' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(524) : warning C4996: 'strcpy' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(535) : warning C4996: 'fopen' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(561) : warning C4996: 'fopen' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(833) : warning C4996: 'fopen' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(850) : warning C4996: 'strcpy' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(887) : warning C4996: 'fopen' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(892) : warning C4996: 'fopen' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(925) : warning C4996: 'fopen' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\Common\UPMFILE.CPP(1125) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\Common\UPMFILE.CPP(1125) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\Common\UPMFILE.CPP(1920) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
ZipInfoDlg.cpp
e:\unprotect source\unp\ZipInfoDlg.h(86) : warning C4996: 'stricmp' was declared deprecated
E:\Programme\Microsoft Visual Studio 8\VC\include\string.h(213) : see declaration of 'stricmp'
Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. See online help for details.'
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\mshtml.h(5204) : error C2365: 'True' : redefinition; previous definition was 'data variable'
e:\unprotect source\common\unpdefs.h(5) : see declaration of 'True'
E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\mshtml.h(5205) : error C2365: 'False' : redefinition; previous definition was 'data variable'
e:\unprotect source\common\unpdefs.h(4) : see declaration of 'False'
Generating Code...
Build log was saved at "file://e:\unprotect source\Unp\Debug\BuildLog.htm"
unp90 - 20 error(s), 20 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
Zuletzt bearbeitet:
Hm. Das wird nicht einfach. Von VS6 auf VS2005 hat sich einfach zu viel getan, nen Freund von mir ist von ner Abteilung extra als Praktikant angestellt worden und hat sich ein halbes Jahr nur mit der Konvertierung von VS6 auf VS2005 beschäftigt. OK waren auch ein paar mehr Dateien, aber nur um mal den Aufwand irgendwie zu verdeutlichen.
Der hat sich quasi jeden Tag mit der Microsoft Hotline rumgeärgert und meistens haben die bei den meisten Fehlern einfach nur gesagt "geht nicht" :ugly:
 
Da musste viel Aufwand reinstecken.

VS 2005 nutzt schon das .NET Framework 2.0!!!!

um in vb6 auf deine zwischenablage zuzugreifen brauchste ne 3/4 Seite code in vs2005 isses clipboard.befehl


Also das wird lustig :)
 
Nachdem ich merkte, dass das nix wird, hab ich die wohl eleganteste Lösung genommen.... Hab mir einfach noch das 6er geholt :ugly: