Mihail Costea <[email protected]> writes:
> Salut,
>
> Rulez asta:
> bRet = CreateProcess( NULL,          /* No module name */
>  command->verb->string ,       /* Command line */
>  NULL,          /* Process handle not inheritable */
>  NULL,          /* Thread handle not inheritable */
>  FALSE,         /* Set handle inheritance */
>  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 */
>
> Si primesc eroarea asta:
> c:\users\student\desktop\tema1\minishell.cpp(160): error C2664:
> 'CreateProcessW' : cannot convert parameter 2 from 'const char *' to
> 'LPWSTR'
> Pica de la acel command->verb->string.

Exercițiile/soluțiile din laborator îți merg? Ai făcut un mic exemplu în
care să rulezi cu șirul "notepad" în loc de command->verb->string? Ce
opțiuni de compilare folosești? Compilezi din linia de comandă sau din
Visual Studio?

Răzvan
_______________________________________________
http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii

Raspunde prin e-mail lui