Apr 17, 2012 #1 A amintlk Member level 1 Joined Aug 23, 2010 Messages 36 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Location bojnourd Activity points 1,523 hi everyone .. how can i use serial port in visual c++ ?? i looked for com port object in activeX component but i didn't find it!!
hi everyone .. how can i use serial port in visual c++ ?? i looked for com port object in activeX component but i didn't find it!!
Apr 20, 2012 #2 Y YAS_HASHI Junior Member level 3 Joined May 5, 2011 Messages 31 Helped 8 Reputation 16 Reaction score 8 Trophy points 1,288 Location Japan Activity points 1,434 Use CreateFile , WriteFile and ReadFile function in "winbase.h". You can use COM port like a file.
Apr 20, 2012 #3 A amintlk Member level 1 Joined Aug 23, 2010 Messages 36 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Location bojnourd Activity points 1,523 thanks but can you give me an example!!
Apr 20, 2012 #4 Y YAS_HASHI Junior Member level 3 Joined May 5, 2011 Messages 31 Helped 8 Reputation 16 Reaction score 8 Trophy points 1,288 Location Japan Activity points 1,434 Look at this page. https://msdn.microsoft.com/en-us/library/windows/desktop/aa363201(v=vs.85).aspx
Apr 21, 2012 #5 S srizbf Advanced Member level 5 Joined Apr 3, 2010 Messages 1,992 Helped 417 Reputation 840 Reaction score 329 Trophy points 1,363 Activity points 10,985 one of the best document on serial port programming is attched here. read it. you will understand many finer points in win serial port programming. Attachments serial-win.pdf 66.7 KB · Views: 92
one of the best document on serial port programming is attched here. read it. you will understand many finer points in win serial port programming.
Apr 30, 2012 #6 A amintlk Member level 1 Joined Aug 23, 2010 Messages 36 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Location bojnourd Activity points 1,523 Thanx everyone ..