Re: programming serial communications
acreepycow_at_yahoo.com
Date: 01/28/05
- Next message: Dan McCarty: "Re: Visual Studio .Net library and eVC 4.0"
- Previous message: Ben S. Terry: "Re: CCeSocket usage"
- In reply to: Paul G. Tobey [eMVP]: "Re: programming serial communications"
- Next in thread:
: "Re: programming serial communications" - Messages sorted by: [ date ] [ thread ]
Date: 28 Jan 2005 13:37:51 -0800
i am merely trying to write a program that sends strings over the
serial port. i looked at the modem connetions to make sure i had the
correct name of the port.
Alex
Paul G. Tobey [eMVP] wrote:
> Let's start at a slightly lower level. What, exactly, are you trying
to do?
> It sounds from what you've tried to far like you are trying to
communicate
> via a modem. If that's the case, tell us what sort of communications
you're
> trying to set up (if you're dialing into an ISP-type connection or
just
> connecting to a server that will pick up the phone and use some other
> communication method).
>
> The error codes can easily be looked up using the Error Code Lookup
tool on
> the Tools menu of eVC...
>
> Paul T.
>
> <acreepycow@yahoo.com> wrote in message
> news:1106929332.462088.101690@z14g2000cwz.googlegroups.com...
> > i've been struggling to program serial communications for my pocket
pc
> > using embedded visual c++ 4.0. I followed the directions from the
msdn
> > help page
> >
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceseril/html/cmconprogrammingserialconnections.asp.
> > I started to create a modem connection from the communications
window
> > and found the serial port name to be "Hayes Compatible on COM1:".
then
> > i finally figured out how to put the string in the correct format
to be
> > a COM name and the code was able to compile. when i run it it
doesn't
> > not work and the error code from SetCommState is 6, which i have
looked
> > up to mean "The handle is invalid."
> > Could anyone tell me what this error means? I'm relatively new to
> > (embedded) visual studio and don't really understand what a handle
is.
> > thank you very much in advance
> > Alex Steingart
> > Duke University '06
> >
- Next message: Dan McCarty: "Re: Visual Studio .Net library and eVC 4.0"
- Previous message: Ben S. Terry: "Re: CCeSocket usage"
- In reply to: Paul G. Tobey [eMVP]: "Re: programming serial communications"
- Next in thread:
: "Re: programming serial communications" - Messages sorted by: [ date ] [ thread ]
Relevant Pages
|