We know that, CreateProcessAPI is used in C program to create a process (to launch an EXE etc..).
I tried exploring if there is any way in C++ using STL (standard library) that we can achieve the same thing.
The reason being, in CreateProcess() API we need to bother about the various types liek LPTSTR (Unicode/MBCS etc..).
But if there is any C++ STL equivalent which would abstract all these details it would be very helpful.
No, CreateProcess
is used in Windows programs. C programs use system
. This is available in C++ as std::system
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.