Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: Using C to ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 1090 of 1134
Post > Topic >>

Re: Using C to launch an application

by Phil Carmody <thefatphil_demunged@[EMAIL PROTECTED] > May 8, 2008 at 02:20 AM

MarkF <MFranklin1981@[EMAIL PROTECTED]
> writes:
> I'm new to programming.  I am a Software Test Engineer.  I am trying
> to write a program that launches a  HyperACESS executable and then
> inputs a bunch of integers and characters into the application.  I was
> thinking of using the system() function like so: system("cd C:\Program
> Files\HAWin32\HAWIN32.EXE") but thats as far as my feeble mind has
> taken me.  If using the system() function is the best way of going
> about this can someone point me to a good example of using system() in
> this manner?  If not, any suggestions?

This sounds like a task for a batch file, shell script, 
perl script, etc. . If you're calling external programs, 
then the overhead of running an interpreted language 
rather than compiled C will almost always be negligible.
Anyway, just 'system' on its own won't do what you want,
as you did say that you want the C code to then input 
numbers into that running program. You're into the realm
of platform specific things such as pipes at that stage.

My personal tool of choice for such tasks would be perl, 
but YMMV. 

Phil
-- 
Dear aunt, let's set so double the killer delete select all.
-- Microsoft voice recognition live demonstration
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 5 Posts in Topic:
Using C to launch an application
MarkF <MFranklin1981@[  2008-05-05 16:01:30 
Re: Using C to launch an application
gordonb.ngoao@[EMAIL PROT  2008-05-07 01:38:18 
Re: Using C to launch an application
Thomas Richter <thor@[  2008-05-07 01:38:30 
Re: Using C to launch an application
"Iman S. H. Suyoto&q  2008-05-07 01:38:46 
Re: Using C to launch an application
Phil Carmody <thefatph  2008-05-08 02:20:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:13:46 CDT 2008.