Salut,<div><br></div><div>Rulez asta:</div><div><div>bRet = CreateProcess( NULL, /* No module name */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> command->verb->string , /* Command line */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> NULL, /* Process handle not inheritable */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> NULL, /* Thread handle not inheritable */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> FALSE, /* Set handle inheritance */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> 0, /* No creation flags */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> NULL, /* Use parent's environment block */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> NULL, /* Use parent's starting directory */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> &si, /* Pointer to STARTUPINFO structure */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> &pi); /* Pointer to PROCESS_INFORMATION */</div>
</div><div><br></div><div>Si primesc eroarea asta:</div><div>c:\users\student\desktop\tema1\minishell.cpp(160): error C2664: 'CreateProcessW' : cannot convert parameter 2 from 'const char *' to 'LPWSTR'</div>
<div>Pica de la acel command->verb->string.</div><div><br></div><div>Am incercat diverse solutii de pe internet dar nu am reusit nimic. Pe Linux totul imi merge bine si frumos, dar aici un amarat de CreateProcess nu functioneaza.</div>
<div>Nervii imi ajung la maxim, ca si-au gasit unii sa faca rescriere de toate tipurile de variabile posibile ca apoi sa nu mai mearga nimic.</div><div>Daca cineva ma poate ajuta as fi fericit. Folosesc masina virtuala de la laborator.</div>
<div><br></div><div>Mihai</div><div><br clear="all"><div><br></div>-- <br>Mihail Costea<div>E-mail : <a href="mailto:mihail.costea90@gmail.com" target="_blank">mihail.costea90@gmail.com</a></div><div>Telephone : +40725245085</div>
<br>
</div>