|
From: Yeoh H. <ye...@ya...> - 2001-04-26 01:38:02
|
You might want to look at this sample code from Planet Source Code It uses Win32 API functions to access the comm ports. Class for serial port access under Windows NT. http://www.planet-source-code.com/xq/ASP/txtCodeId.677/lngWId.3/qx/vb/script s/ShowCode.htm Yeoh ----- Original Message ----- From: Alex Cosic <al...@ca...> To: <dev...@li...> Sent: Thursday, April 26, 2001 9:23 AM Subject: RE: [Dev-C++] Serial Communication > Thank for info.I understand that but: > > Direct hardware access in 32-bit Windows is generally not allowed. While it > can be done in the Win9x OS by using inline assembly, this is generally > discouraged as this technique is not supported under WinNT. The hardware > port communication family of functions, such as inportb, inpw, outportb and > outpw are now deprecated and are no longer supported. Is there some way to > use Win32 API CreateFile and the Win32 communications functions under > Dev-C++? > Thanks in advance > > Alex Cosic > > > -----Original Message----- > From: Yeoh HS [mailto:ye...@ya...] > Sent: Thursday, 26 April 2001 11:01 AM > To: dev...@li... > Subject: Re: [Dev-C++] Serial Communication > > > Hi, > > Try this site: > http://www.beyondlogic.org/serial/serial1.htm > > Yeoh > > ----- Original Message ----- > From: Alex Cosic <al...@ca...> > To: <Dev...@li...> > Sent: Thursday, April 26, 2001 8:29 AM > Subject: [Dev-C++] Serial Communication > > > > Hi there, > > > > I am looking for some information on how to establish serial communication > > with Dev-C++. I sthere some rourines to establish serial connection with > let > > 's say com2 port? > > > > I have read winbase.hand it seems to be possible but I could not get the > > exact command. There is a structure to do that, but there is no enough > > information to write simple routine for serail communication. > > Thanks in davance > > > > Regards > > > > Alex Cosic > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |