On 2007-09-24 20:28, mohamed azaz wrote:
> On Sep 24, 5:04 pm, "Victor Bazarov" <v.Abaza...@comAcast.net> wrote:
>> mohamed azaz wrote:
>> > I want to know
>>
>> > can c++ deal with hardware??
>>
>> > like fax modem or Lan or Audio device
>>
>> What do you mean by "can"? Can one write a program in C++ that
>> would control hardware? Sure. AFAIK people do it all the time.
>> Can one write such a program only using *standard C++ means*?
>> Most likely, no. Unless your device control is provided by the
>> OS through a named file, and all hardware intercation can be
>> accomplished by reading from, and writing into, that file, you
>> will have to resort to some special ways to interact with the
>> hardware in question, like 'outp' or 'inp' or 'ioctl'.
>
>
> thank you very much
> but I want to write aprogramm by c++ chek if there is dial tone or
> not??
> how can I make this by c++?
Please do not top post, and do not quote signatures.
To check if there is a dial tone you would probably not have to interact
with the modem directly, you would probably use some kind of Windows API
(I assume that is your platform), for more information you should ask in
a group discussing programming on your platform, the FAQ lists a few:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
For the future, please not that questions for which the answer is
dependent on your platform are off topic in here.
--
Erik Wikström