Re: [BLACKBOX] CommV24 - COM10 and higher

From: [at]} <philipp>
Date: Mon, 12 Mar 2012 13:30:24 -0700

----boundary-LibPST-iamunique-678295046_-_-
Content-type: text/plain

Many thanks! This worked fine:

CommV24.Open("\\.\COM10"
Hi Chris,

Many thanks! This worked fine:

CommV24.Open("\\.\COM10", 9600, {}, conn);


Regards,

Philipp



----- Original Message -----
From: Chris Burrows <chris{([at]})nowhere.xy
To: BLACKBOX{([at]})nowhere.xy
Cc:
Sent: Monday, 12 March 2012 8:26 PM
Subject: Re: [BLACKBOX] CommV24 - COM10 and higher

>-----Original Message-----
>From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
>Sent: Monday, 12 March 2012 2:08 PM
>To: BLACKBOX{([at]})nowhere.xy
>Subject: [BLACKBOX] CommV24 - COM10 and higher
>
>I am using CommV24 to talk to some embedded systems over a virt Hi all
>
>I am using CommV24 to talk to some embedded systems over a
>virtual communication port.
>
>I had no problem opening the comm ports until COM9. But from 
COM10 upwards the following procedure no longer seems make a >connection:
>
>CommV24.Open(listItem$, 9600, {}, conn);
>
>The string listItem$ is a simple “COM10”$.  Here is the
>initialization I use:
>

...
...

If you look at the source code of 'CommV24.Open' you will see that it passes
the first parameter (device name) to the WinAPI function 'CreateFileW'.

The following Microsoft KnowledgeBase article describes what you have to do
if you want to access COM ports numbered higher than 9 when using
'CreateFile' (I don't know but assume it will work with CraeteFileW as
well):

http://support.microsoft.com/kb/115831

Regards,
Chris

Chris Burrows
CFB Software
http://www.cfbsoftware.com
 


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-678295046_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGY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: Thu Sep 26 2013 - 06:30:06 UTC