using win32 with c# for serial data transferr

fguihen

Well-known member
Joined
Nov 10, 2003
Messages
248
Location
Eire
i have found out the hard way that the dot net framework does not have support for serial devices as of yet, and i need to take data in through a serial port ( my infared port). i have found that i will have to use the win32 api. can anyone tell me how to add this to my project, and what methods , functions i need from it to allow me to recieve data from a serial port?im using c#.
thanks all
 
Youll need to define the Win32 API function [api]CreateFile[/api]. I believe thats the only API youll need, since the rest can be accomplished with streams by passing in the appropriate file handle.
 
Back
Top