ShellExecute
-
hi,
ZB:
ShellExecute(NULL,"open","C:\\blabla.exe", NULL, NULL, SW_SHOW);hatte super bei devcpp geklappt, sber seit dem ich auf vc++ um gestiegen bin geht alles schief

hab auch schon so versucht:ShellExecute(NULL,L"open",L"C:\\blabla.exe", NULL, NULL, SW_SHOW); oder ShellExecute(NULL,_T("open"),T_("C:\\blabla.exe"), NULL, NULL, SW_SHOW);die includeten headerdatein:#include <windows.h>
#include <tchar.h>
#include <shellapi.h>Aber da kommen immer 2 errors
Error 1 error LNK2028: unresolved token (0A000015) "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) referenced in function "private: void __clrcall loop::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@Form1@loop@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) loop.obj Error 2 error LNK2019: unresolved external symbol "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) referenced in function "private: void __clrcall loop::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@Form1@loop@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) loop.objseit dem ich auf vc++ 2005 umgestiegen bin gibts nur noch errors auch bei vc++2008 beta2
Bitte um Hilfe
Mfg
-
#pragma comment(lib, "shell32.lib")