Re: Delphi problem with Laptop



On 2006-12-24, Jamie () wrote in
message <yswjh.400$Yz7.23@xxxxxxxxxxxx>


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 don't know what mapped ports are , but for normal serial ports, the following is valid since NT4 and to this day:
<http://support.microsoft.com/kb/115831>

Regarding the : character, I'm guessing that Windows simply parses the port name until a match occurs.





--
Cheers - Old Fan


.