i can execute a programme using the system() function but is there another way because this black console box comes up in the process.
i can execute a programme using the system() function but is there another way because this black console box comes up in the process.
I started out with nothing and I still have most of it left.
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.
I started out with nothing and I still have most of it left.