i can execute a programme using the system() function but is there another way because this black console box comes up in the process.
Printable View
i can execute a programme using the system() function but is there another way because this black console box comes up in the process.
Change Buff to suit your needs.Code:STARTUPINFO startInfo;
PROCESS_INFORMATION procInfo;
ZeroMemory(&procInfo,sizeof(PROCESS_INFORMATION));
ZeroMemory(&startInfo,sizeof(STARTUPINFO));
char Buff[2048]="C:\\program.exe";
CreateProcess(NULL, Buff, NULL, NULL, NULL, NULL, NULL, NULL, &startInfo, &procInfo);
thanks.