Include header (not you own declaration).
Add library to project.
Build.
Let us know.
I wanna work for Microsoft!
Using a program to run others
Haven''t you added a library before?
Go to Project->Settings. You''ll be seeing a dialog box and under the link tab add the libraries you need to the Object/ Libraries Modules: edit box.
Then build.
Go to Project->Settings. You''ll be seeing a dialog box and under the link tab add the libraries you need to the Object/ Libraries Modules: edit box.
Then build.
Here is an easier way. Just include windows.h and do a WinExec("c:\\directory\\program.exe",1); . That works. Just dont forget your double back slash or it will not work, even you newbies should know that.
-----------------------------
http://www.hardwarenotes.com
-----------------------------
http://www.hardwarenotes.com
-------------------------------www.HardwareNotes.com
Oh and that number at then end can be used to manipulate the way the window appears i.e. minimized, full screen, normal. I dont remember which is which other than that 1 is normal. Just play with that a little and you can run programs minimized or make programs that are not usually allowed to be maximized to be maximized. Have fun.
-------------------------------
www.HardwareNotes.com
-------------------------------
www.HardwareNotes.com
-------------------------------www.HardwareNotes.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement