Re: Delphi problem with Laptop



Old Fan wrote:
On 2006-12-23, Jamie () wrote in
message <aLhjh.273$Yz7.154@xxxxxxxxxxxx>


Gert Baars wrote:


FHandle := CreateFile(
PChar('\\.\' + FPort),



file name should be like
COM1: COM2: COM2: etc..
the use of \\.\ is for non mapped devices if i remember?


The prefix '\\.\' must be used for portnumbers > 9, e.g. '\\.\COM10'

aren't you still forgetting something in the file name?
the ":" after the number..
COM10: for example is a mapped port. , it does work ,just try it.


--
"I'm never wrong, once i thought i was, but was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5

.



Relevant Pages

  • Re: Delphi problem with Laptop
    ... Old Fan wrote: ... PChar('\\.\' + FPort), ... for example is a mapped port. ...
    (alt.comp.lang.borland-delphi)
  • Re: Delphi problem with Laptop
    ... PChar('\\.\' + FPort), ... from USBRS232 adaptors ... I thought the \\.\ stuff was for opening physical and logical drives ...
    (alt.comp.lang.borland-delphi)