Bonjour,
J'ai rajouté la dernière ligne et effectivement cela fonctionne.
Code:
1
2
3
4
5 #pragma comment(lib, "User32.lib") #pragma comment(lib, "oleaut32.lib") #pragma comment(lib, "ole32.lib") #pragma comment(lib, "odbc32.lib")
Merci!!
Version imprimable
Bonjour,
J'ai rajouté la dernière ligne et effectivement cela fonctionne.
Code:
1
2
3
4
5 #pragma comment(lib, "User32.lib") #pragma comment(lib, "oleaut32.lib") #pragma comment(lib, "ole32.lib") #pragma comment(lib, "odbc32.lib")
Merci!!
escuser moi de redeterer ce post mais j'ai un souci similaire meme en ajoutant
j'ai toujours ces erreursCode:
1
2
3
4 #pragma comment(lib, "User32.lib") #pragma comment(lib, "oleaut32.lib") #pragma comment(lib, "ole32.lib") #pragma comment(lib, "odbc32.lib ")
Code:
1
2
3 1>freeSetup.obj : error LNK2028: jeton non résolu (0A00000F) "extern "C" struct HINSTANCE__ * __stdcall ShellExecuteW(struct HWND__ *,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,int)" (?ShellExecuteW@@$$J224YGPAUHINSTANCE__@@PAUHWND__@@PB_W111H@Z) référencé dans la fonction "private: void __clrcall freeSetup::Form1::install_Click(class System::Object ^,class System::EventArgs ^)" (?install_Click@Form1@freeSetup@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) 1>freeSetup.obj : error LNK2019: symbole externe non résolu "extern "C" struct HINSTANCE__ * __stdcall ShellExecuteW(struct HWND__ *,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,int)" (?ShellExecuteW@@$$J224YGPAUHINSTANCE__@@PAUHWND__@@PB_W111H@Z) référencé dans la fonction "private: void __clrcall freeSetup::Form1::install_Click(class System::Object ^,class System::EventArgs ^)" (?install_Click@Form1@freeSetup@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) 1>C:\Users\Atelier\Documents\Visual Studio 2008\Projects\freeSetup\Debug\freeSetup.exe : fatal error LNK1120: 2 externes non résolus
Solution ici:
http://msdn.microsoft.com/en-us/libr...53(VS.85).aspx
merci pour ce lien je connaissais mais je n'arrive pas a comprendre ce qui cloche car j'ai bien respecter les caracteristique de shellexecute:
si je ne mais pas les "L" il ne me reconnait pas les format...Code:ShellExecute(NULL,L"open",L"C:\\Users\\Atelier\\Desktop\\menub\\menu.exe",NULL,NULL,SW_SHOWDEFAULT);
merci de me depanner