The IDE saves the source code to a temp file and invokes the compiler, with the file name in the commandl-ine.
In this example, there is no further interaction between IDE and compiler.
/*
BOOL WINAPI CreateProcess(
1 __in_opt LPCTSTR lpApplicationName,
2 __inout_opt LPTSTR lpCommandLine,
3 __in_opt LPSECURITY_ATTRIBUTES lpProcessAttributes,
4 __in_opt LPSECURITY_ATTRIBUTES lpThreadAttributes,
5 __in BOOL bInheritHandles,
6 __in DWORD dwCreationFlags,
7 __in_opt LPVOID lpEnvironment,
8 __in_opt LPCTSTR lpCurrentDirectory,
9 __in LPSTARTUPINFO lpStartupInfo,
10 __out LPPROCESS_INFORMATION lpProcessInformation
);
*/
sys hchw[128],nchw 'child windows
function Exec(string s)
'======================
STARTUPINFO infs
PROCESS_INFORMATION infp
string fi="_.o2bas"
putfile fi,s
CreateProcess "co2.exe","co2.exe "+fi ,0,0,0,0,0,0,@infs,@infp
CloseHandle infp.hProcess
CloseHandle infp.hThread
end function
Charles