i can't seem to get it to work....
the following error messages i received after compiling the program....
c:\program files\microsoft visual studio\myprojects\ass12\as
c:\program files\microsoft visual studio\myprojects\ass12\as
c:\program files\microsoft visual studio\myprojects\ass12\as
c:\program files\microsoft visual studio\myprojects\ass12\as
c:\program files\microsoft visual studio\myprojects\ass12\as
Error executing cl.exe.
I'm sorry but i'm kinda new to c++..could u help me out with the entire code?? thanks...
Main Topics
Browse All Topics





by: grg99Posted on 2003-08-20 at 06:39:17ID: 9188056
Very easy, here's a start of this.:
PROCESS_INFORMATION procInfo;
STARTUPINFO startupInfo = {0};
startupInfo.cb = sizeof(STARTUPINFO);
char attr[] = "NotePad.exe -options";
char process[] = "NotePad.exe";
// start the ScriptFile
m_create = CreateProcess(process, attr,NULL, NULL, FALSE, 0, NULL, NULL, &startupInfo, &procInfo);
if (m_create == 0) {
m_error = GetLastError();
}
else
{
// wait for process to finish...
while( processrunning( m_create ) ) { ... };
}