|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (4 bit)
Join Date: Sep 2003
Posts: 14
|
XP serial communication
Hello there:
I am wondering if there is a way to communicate serially in windows XP with C code. I have seen a few examples of C++ but i dont know much C++ with classes and such. Please send me a personal message: zoacher@hotmail.com if you can, but if not a reply on here would help immensely too! thanks again, [\/]orcos |
|
|
|
|
|
#2 |
|
Member (10 bit)
Join Date: Jul 2002
Location: University of California, Santa Barbara
Posts: 800
|
First, on a forum such as these, you should not expect an email, but rather replying posts. This is a community, and a public discussion here can help other people, but not if it's conducted in private over email.
Secondly, for a project like this it is likely to be quite similar if not identical in C and C++. Thirdly, XP runs in protected mode, meaning you do not get access to the serial port by default, you either have to make a driver or use something like port talk to get you access. And in conclusion, if you read what the rest of what beyond logic.org has to say about serial ports it should answer the rest of your question. But in general you will need to find the appropriate output function (which depends on C or C++, and which compiler you have, but is generally something like outp(address, data), output(address, data), outportb(address, data). Googling will generally help you find the appropriate function for your compiler. I could be wrong, but for C I believe you want outportb in dos.h. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|