Re: [BLACKBOX] CommV24 - COM10 and higher

From: [at]} <Chris>
Date: Mon, 12 Mar 2012 17:56:07 +1030

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

>-----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----boundary-LibPST-iamunique-1522010226_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYW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+
XHBhcg0KLi4uXHBhcg0KLi4uXHBhcg0KXHBhcg0KSWYgeW91IGxvb2sgYXQgdGhlIHNvdXJjZSBj
b2RlIG9mICdDb21tVjI0Lk9wZW4nIHlvdSB3aWxsIHNlZSB0aGF0IGl0IHBhc3Nlc1xwYXINCnRo
ZSBmaXJzdCBwYXJhbWV0ZXIgKGRldmljZSBuYW1lKSB0byB0aGUgV2luQVBJIGZ1bmN0aW9uICdD
cmVhdGVGaWxlVycuIFxwYXINClxwYXINClRoZSBmb2xsb3dpbmcgTWljcm9zb2Z0IEtub3dsZWRn
ZUJhc2UgYXJ0aWNsZSBkZXNjcmliZXMgd2hhdCB5b3UgaGF2ZSB0byBkb1xwYXINCmlmIHlvdSB3
YW50IHRvIGFjY2VzcyBDT00gcG9ydHMgbnVtYmVyZWQgaGlnaGVyIHRoYW4gOSB3aGVuIHVzaW5n
XHBhcg0KJ0NyZWF0ZUZpbGUnIChJIGRvbid0IGtub3cgYnV0IGFzc3VtZSBpdCB3aWxsIHdvcmsg
d2l0aCBDcmFldGVGaWxlVyBhc1xwYXINCndlbGwpOlxwYXINClxwYXINCmh0dHA6Ly9zdXBwb3J0
Lm1pY3Jvc29mdC5jb20va2IvMTE1ODMxXHBhcg0KXHBhcg0KUmVnYXJkcyxccGFyDQpDaHJpc1xw
YXINClxwYXINCkNocmlzIEJ1cnJvd3NccGFyDQpDRkIgU29mdHdhcmVccGFyDQpodHRwOi8vd3d3
LmNmYnNvZnR3YXJlLmNvbVxwYXINCiAgXHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVu
c3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRv
IExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSFx9fQA2Mfo
----boundary-LibPST-iamunique-1522010226_-_---
Received on Mon Mar 12 2012 - 08:26:07 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:07 UTC