![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3
![]() |
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 |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,209
Rep Power: 5
![]() |
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.... |
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3
![]() |
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.. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |