Hi, ok, a newbie question:
I want to give a parameter to this program :
Code:
...
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, char * lpCmdLine, int nCmdShow)
{
WIN32_FIND_DATA FindFileData;
HANDLE hFind;
char search[20]="SETI.exe";
...
I want char search[20]="SETI.exe"; something like char search[20]=lpCmdLine;
but it says it's wrong
(I want to create an exe that has to be used like myprogram.exe -SETI.exe)
I know how to do with main(..) but not with WINAPI WinMain (I need it)
thanx for help