Da li bi mozda pomoglo da kompajliram pod win98.
Potrebno mi je pokretanje exe fajla iz koda, sto sam uradio na sledeci nacin:
=======================
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
int myProcess = 0;
//preuzimanje datuma sa kase
myProcess = CreateProcess(NULL, "prog1 list.txt",
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ); // Pointer to PROCESS_INFORMATION structure.
if (myProcess == 0){
printf("NOT OK Proces pogresno kreiran!\n");
return 0;
}
else{
printf("OK kreiranje procesa\n");
WaitForSingleObject( pi.hProcess, INFINITE );
}
// Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
========================================
ovo nece da radi pod win98, a pod xp-om radi ok
Iz komandne linije radi kako treba i pod win98!!! (c:\prog1 list.txt)
Upomoc!!!
She's nice from a far, but far from nice.