Re: Delphi problem with Laptop
- From: Old Fan <No@xxxxxxxxxxx>
- Date: Tue, 26 Dec 2006 19:35:30 GMT
On 2006-12-24, Jamie () wrote in
message <yswjh.400$Yz7.23@xxxxxxxxxxxx>
Old Fan wrote:On 2006-12-23, Jamie () wrote inaren't you still forgetting something in the file name?
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'
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
.
- Follow-Ups:
- Re: Delphi problem with Laptop
- From: Jamie
- Re: Delphi problem with Laptop
- References:
- Delphi problem with Laptop
- From: Gert Baars
- Re: Delphi problem with Laptop
- From: Jamie
- Re: Delphi problem with Laptop
- From: Old Fan
- Re: Delphi problem with Laptop
- From: Jamie
- Delphi problem with Laptop
- Prev by Date: Re: getting an event handler from a active-x dll dispinterface
- Next by Date: Re: Delphi problem with Laptop
- Previous by thread: Re: Delphi problem with Laptop
- Next by thread: Re: Delphi problem with Laptop
- Index(es):