I'm trying to get the Program Files path, append it another bit of path and then run it.
TCHAR programsdir[MAX_PATH];
SHGetFolderPath(NULL,CSIDL_PROGRAM_FILESX86,NULL,NULL,programsdir);
PathAppend(programsdir, TEXT("\\bin\\program.exe"));
LPCSTR pokerpath = TEXT(programsdir);
WinExec(pokerpath ,SW_SHOW);
return pokerpath;
Getting this error message when trying to run the above:
error C2065: 'Lprogramsdir' : undeclared identifier