Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 26th, 2006, 6:13 AM   #1
hbe02
Hobbyist Programmer
 
hbe02's Avatar
 
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3 hbe02 is on a distinguished road
Serial Port communication

For the record, im using C++.NET , visual studio.net 2003 and windows XP.
I want to connect the PC's serial port to a PIC microchip and write a program that sends bytes of 1's or 0's to the microchip through the serial port.
Now i have searched the forum and found this post:
http://www.programmingforums.org/for...ht=serial+port
im looking for something like post numer 14. which Arevos had in C# should be applicable to C++.net since they have a common lang. interface. but my search on MSDN to find such a class failed, maybe im using the wrong keywords.? all i find is win32 port, but i dont think this is what im looking for. can ya'll guide me to what class to use? in which library is it contained? any samples would be great...
Thanks
hbe02 is offline   Reply With Quote
Old Aug 26th, 2006, 9:32 AM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,209
Rep Power: 5 grumpy is on a distinguished road
This isn't really a C++ problem; you need to use the win32 API.

This link provides an example (in C++, not C++.net) of using the win32 API to read and write from serial ports. Not exactly the canned solution you're looking for but can presumably be adapted....
grumpy is offline   Reply With Quote
Old Aug 26th, 2006, 11:01 AM   #3
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
You mean http://msdn2.microsoft.com/en-us/lib...erialport.aspx?
Polyphemus_ is offline   Reply With Quote
Old Aug 26th, 2006, 2:30 PM   #4
hbe02
Hobbyist Programmer
 
hbe02's Avatar
 
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3 hbe02 is on a distinguished road
I couldnt find anything on the serial Port because i had the 1.1 version of the .NEt framework and this class is a recent addition in the 2.0 framework as illustrated in Polyphemus's link..
I am downloading the 2.0 version now, so will be learning more on the class soon. thanks grumpy and Polyphemus.. documentation on links are very usefull..
hbe02 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial Communication: BASIC to Python titaniumdecoy Python 7 Jul 20th, 2006 5:09 PM
Serial Port Programming Fatman C++ 4 May 26th, 2006 4:14 PM
Data logging problem from the serial port jerryleo Perl 0 Jan 10th, 2006 7:47 AM
Serial Communication Automatik C++ 2 May 19th, 2005 9:30 AM
C programing control of the Serial Port. Light C++ 5 Feb 24th, 2005 2:14 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:27 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC