Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > GetCommState failed with error 87.

Reply
Thread Tools

GetCommState failed with error 87.

 
 
uvbaz
Guest
Posts: n/a
 
      04-14-2008
Hi,

i'm trying to set the serial port.(XP SP2, Visual Studio 2005). I use
the example code from MSDN "configuring a communications resource".

CreateFile pass through, however GetCommState return 0.With
GetLastError(), i get the error number 87, which means
"ERROR_INVALID_PARAMETER The parameter is incorrect. "
I'm sure the serial port works, because i can use another program to
read/write through it.

thx
Cheng
 
Reply With Quote
 
 
 
 
uvbaz
Guest
Posts: n/a
 
      04-14-2008
On 14 Apr., 16:01, "Victor Bazarov" <v.Abaza...@comAcast.net> wrote:
> uvbaz wrote:
> > i'm trying to set the serial port.(XP SP2, Visual Studio 2005). I use
> > the example code from MSDN "configuring a communications resource".

>
> > CreateFile pass through, however GetCommState return 0.With
> > GetLastError(), i get the error number 87, which means
> > "ERROR_INVALID_PARAMETER The parameter is incorrect. "
> > I'm sure the serial port works, because i can use another program to
> > read/write through it.

>
> Wrong newsgroup. Try 'comp.os.ms-windows.programmer' or the appropriate
> forum from the 'microsoft.public.*' hierarchy.
>
> V
> --
> Please remove capital 'A's when replying by e-mail
> I do not respond to top-posted replies, please don't ask


O.K.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot open user default database. Login failed. Login failed for user 'HEMPC\ASPNET' Tony Johansson ASP .Net 3 01-02-2010 04:09 PM
Deploying application in domain failed; WSGEN FAILED in Netbeans6.1with Glassfish kiran Java 5 07-09-2008 09:17 PM
GetCommState failed with error 87. uvbaz C Programming 6 04-15-2008 05:56 PM
Errors: Failed to load viewstate. & Validation of viewstate MAC failed. sck10 ASP .Net 6 09-01-2006 05:59 PM
QueryInterface for interface Excel._Application failed / QueryInterface for interface Word._Application failed SOLUTION Wildepiet ASP .Net 0 06-14-2004 07:28 AM



Advertisments