Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   running a c++ program to invoke hyperterminal (http://www.go4expert.com/forums/running-cpp-program-invoke-hyperterminal-t17910/)

calvinlyp 8Jun2009 20:49

running a c++ program to invoke hyperterminal
 
hi all,

i am relatively new to c++ programming.

would like to ask is it possible to write a program to invoke the hyper terminal?

in the sense the program will allow user to enter phone number(maybe plus some others parameters like data bits,baud rate) before it invoke hyperterminal?

plus can the program also input command to the hyperterminal which is connected to a modem to do some function?

pls help.
thanks.

xpi0t0s 9Jun2009 03:36

Re: running a c++ program to invoke hyperterminal
 
It'd probably be easier to write the code to poke data down the COM port instead. Last time I did that (in Win16, so the API's changed since then), it was really easy.
If you don't want to do that then you'll have to investigate (a) HyperTerminal's programming interfaces (OLE, DDE etc) or if you can do some screen scraping, both of which are likely to be a lot more complicated than just accessing the port directly.

calvinlyp 9Jun2009 06:57

Re: running a c++ program to invoke hyperterminal
 
Quote:

Originally Posted by xpi0t0s (Post 49215)
It'd probably be easier to write the code to poke data down the COM port instead. Last time I did that (in Win16, so the API's changed since then), it was really easy.

actually the program required to input certain query command to the hyperterminal to download some files from the other end which is using the same modem, thus i am not sure is it still possible to code through COM port.

the next following problem is how can i input the hyperterminal parameters(like phone num, baud rate etc) through the pprogram?

please advise.


All times are GMT +5.5. The time now is 19:19.