Bonjour,
J'ai récemment trouvé ce code : http://www.cppfrance.com/code.aspx?ID=37237
Je voudrais l'exécuter sous Visual Studio 6.0 mais je n'y
arrive pas (par contre aucun problème sous dev-C++).
Voici les warnings que j'obtiens lorsque je compile :
/*****************************************************************/
Compiling...
Courbes_SimoCom_U.cpp
c:\unzipped\cppfrance_source_37237\courbes_simocom_u\left_mid_right.h(5)
: warning C4018: '<=' : signed/unsigned mismatch
c:\unzipped\cppfrance_source_37237\courbes_simocom_u\left_mid_right.h(16)
: warning C4018: '<' : signed/unsigned mismatch
c:\unzipped\cppfrance_source_37237\courbes_simocom_u\draw.h(29)
: warning C4101: 'bm' : unreferenced local variable
c:\unzipped\cppfrance_source_37237\courbes_simocom_u\draw.h(30)
: warning C4101: 'hbmCP' : unreferenced local variable
c:\unzipped\cppfrance_source_37237\courbes_simocom_u\courbes_simocom_u.cpp(301)
: warning C4101: 'buffer' : unreferenced local variable
/*****************************************************************/
Voici les erreurs lorsque je "build" :
/**********************************************************/
Linking...
Courbes_SimoCom_U.obj
: error LNK2001: unresolved external symbol __imp__InitCommonControls@0
Courbes_SimoCom_U.obj
: error LNK2001: unresolved external symbol __imp__CreateStatusWindowA@16
LIBCD.lib(crt0.obj)
: error LNK2001: unresolved external symbol _main
Debug/graphique.exe
: fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
graphique.exe
- 4 error(s), 0 warning(s)
/************************************************************/
J'ai essayé de rajouter cette ligne ( #pragma comment(lib,
"comctl32.lib") ) comme
indiqué dans les commentaires de la source, mais ça ne marche pas.
J'ai toujours les mêmes warnings par contre au niveau des
erreurs j'obtiens maintenant :
/************************************************************/
Linking...
LIBCD.lib(crt0.obj)
: error LNK2001: unresolved external symbol _main
Debug/Graphique2.exe
: fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
/*****************************************************************************/
Je souhaiterais vraiment pouvoir le faire fonctionner sous
visual studio.
Merci votre aide,
A++