| View previous topic :: View next topic |
| Author |
Message |
Vijay Guest
|
Posted: Mon Nov 20, 2006 3:30 am Post subject: How Reports can be printed |
|
|
How can i execute an exutable file from my c++ programme.
I want to print a report from my programme. so that i have given the
printing commands in a batch file and i want to execute it from my
programme so printing of report can be achieved
Please solve my problem urgently.
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ] |
|
| Back to top |
|
 |
Alf P. Steinbach Guest
|
Posted: Mon Nov 20, 2006 5:02 am Post subject: Re: How Reports can be printed |
|
|
* Vijay:
| Quote: | How can i execute an exutable file from my c++ programme.
I want to print a report from my programme. so that i have given the
printing commands in a batch file and i want to execute it from my
programme so printing of report can be achieved
Please solve my problem urgently.
|
You can use std::system. The function is standard, its argument string
is platform-specific. I think this should be a FAQ, but evidently it isn't.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ] |
|
| Back to top |
|
 |
Terry G Guest
|
Posted: Mon Nov 20, 2006 8:04 am Post subject: Re: How Reports can be printed |
|
|
"Vijay" wrote
| Quote: | How can i execute an exutable file from my c++ programme.
I want to print a report from my programme. so that i have given the
printing commands in a batch file and i want to execute it from my
programme so printing of report can be achieved
Please solve my problem urgently.
|
Since you're in a hurry... I'll try to help.
On Microsoft C, there used to be a function called "system" that could
run a batch file.
You can use one of the unix-like "exec", "spawn" or "fork" family of C
runtime routines too.
terry
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ] |
|
| Back to top |
|
 |
|