linking c++ to gams software
<p>I want to link c++ to GAMS software using createprocess() function. I used this code but it just opens the GAMS software. I want that the programe run a file.gms automatically after openning the GAMS software:</p>

<pre><code>STARTUPINFO si;    
PROCESS_INFORMATION pi;   
ZeroMemory(&amp;si, sizeof(si));  
si.cb = sizeof(si);  
ZeroMemory(&amp;pi, sizeof(pi));  
if(CreateProcessW(L"C:\\PROGRA~1\\gams23.3\\gamside.exe",NULL,NULL,NULL,false,0,NULL,NULL,&amp;si,&amp;pi))   
 {      
    WaitForSingleObject(pi.hProcess, 10000 );   
           CloseHandle( pi.hProcess );   
           CloseHandle( pi.hThread );   
 }
</code></pre>

<p>Please help me. Thanks so much.</p>
