Is it possible to set fixed DLL search path in VisualStudio application?
This question already has an answer here:
As mvidelgauz suggested, I've implemented a launcher using winapi. It was my first native winapi project, but it took indeed only halh an hour to implement.
I created a default Win32 project in VS2008.
In BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
, removed the lines:
//ShowWindow(hWnd, nCmdShow);
//UpdateWindow(hWnd);
And then instead of them, I added:
SetCurrentDirectory( L"MyPath" );
ShellExecute(hWnd, NULL, L"MyApp.exe", L"-l", NULL, SW_HIDE);
DestroyWindow(hWnd);