Thursday, July 30, 2009

How can I write a simple C++ program that starts notepad when the program is run?

Or any program (just using notepad as a simple example). I am using Bloodshed Dev C++.

How can I write a simple C++ program that starts notepad when the program is run?
Spawn, exec or system function. I would use:





spawnl(P_WAIT, "%SystemRoot%\system32\notepad.exe ", NULL);


No comments:

Post a Comment