Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-08-2004, 06:30 PM   #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
morcos is offline   Reply With Quote
Old 12-09-2004, 04:18 PM   #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.
mattg2k4 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:13 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2