how do you make dos open a seperate file like ms paint for example
how do you make dos open a seperate file like ms paint for example
The simplest way without knowing what exec-type functions your compiler supports would be
Code:system ( "mspaint" );
My best code is written with the delete key.
what would be the whole program code for that?
Code:... #include <cstdlib> ... int main() { ... system("[enter system call here]"); ... }
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
He okay i'm a newb let me tell you that. Anyway, i find this a very unclear question. Open in dos?
C:\map\map\program.exe
c.c
That would be
Note the escaping(sp?) of the backslash. I think a forward slash will work too, but I'm not sure.Code:<cstdlib> using namespace std; int main() { system("C:\\map\\map\\program.exe"); return 0; }
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
check out option 1
SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
I say what I say, I mean what I mean.
IDE: emacs + make + gcc and proud of it.
If you are in pure DOS or a DOS session (NOT available in XP) then you can call DOS int 21h and open a file via DOS or you can execute a dos interrupt from C which will automatically call DOS for you.
DOS has specific functions for opening child processes although they are somehwhat limited since it was never designed to be a multi-tasking OS.