calling applications in VC++ etc,
-
Hi... just few simple questions: 1. how do u call an application in your VC++ project? e.g. I want to call real player.exe in my project.. what's the command? 2. What's the command to copy one file? e.g. I wanna copy pic.bmp to c:/image/pic.bmp 3. How do I know what's my current working directory? Thanks a LOT....:) :) :)
-
Hi... just few simple questions: 1. how do u call an application in your VC++ project? e.g. I want to call real player.exe in my project.. what's the command? 2. What's the command to copy one file? e.g. I wanna copy pic.bmp to c:/image/pic.bmp 3. How do I know what's my current working directory? Thanks a LOT....:) :) :)
1. "spawn" is my favorite 2. CopyFile 3. getcwd 4. MSDN -c
Smaller Animals Software, Inc. http://www.smalleranimals.com
-
Hi... just few simple questions: 1. how do u call an application in your VC++ project? e.g. I want to call real player.exe in my project.. what's the command? 2. What's the command to copy one file? e.g. I wanna copy pic.bmp to c:/image/pic.bmp 3. How do I know what's my current working directory? Thanks a LOT....:) :) :)
1- CreateProcess(); 2- CopyFile() 3- GetCurrentDirectory(); Cheers:-D Carlos Antollini. :bob: Today is Friday!!! :beer: for All!!!
-
Hi... just few simple questions: 1. how do u call an application in your VC++ project? e.g. I want to call real player.exe in my project.. what's the command? 2. What's the command to copy one file? e.g. I wanna copy pic.bmp to c:/image/pic.bmp 3. How do I know what's my current working directory? Thanks a LOT....:) :) :)
MSDN has all these functions, although these types of functions are typically Windows API, and not wrapped in any way by MFC. For running a process, there are a couple others: 1. ShellExecute: it is nice if you have a program's date (e.g., a RealPlayer file) and want the system to find the app that handles it. 2. CreateProcess: if you want full control over creation, but it is probably the most complicated of the ways to run a program. The early bird may get the worm, but the second mouse gets the cheese.