I have some C++ code that wraps a com i/o port that works under windows nt, 95, 98, 2000, ... (using CreateFile, etc) Download the source for the winamp avs layer at the bottom of this url: http://www.luminus.cx/projects/chaser/ (a pic driven light chaser I built a while ago) The two files, comIO.h and comIO.cpp are really straight forward to use, and if you need help using them let me know.... Aaron -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Brandon Fosdick Sent: Wednesday, May 30, 2001 1:51 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [EE]:controlling serial port from windows NT sam woolf wrote: > > Hi, > Have made a little PIC thing that communicates with a computer through the serial port. This works fine with windows 95 but doesn't transfer to NT because NT does not allow use of the _inp() and _outp() functions. What can be done that doesn't require either brains or money? > Sam. It's been awhile since I've done any windows programming, but I think you can use CreateFile() or CreateFileEx() to open a serial port. There's a special constant that you have to pass instead of the path name I think. Like I said, its been awhile. If you have Visual Studio theres a good explanation in the docs. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body