|
In lugnet.robotics, Ralph Hempel wrote:
> > > Even worse, the filename actually only works on Win2K, WinNT,
> > > and WinXP. Win98 and WinME won't open this filename at all
> > > as they think you are looking for a UNC mapped path.
> > >
> > > Can anyone else confirm these observations?
> > >
> > > Ralph
> >
> > Right with \\.\...., but at least with Win98SE the port is correctly found.
> > Great to here you Ralph.
>
> Claude,
>
> I've written a little C program that tries to open "\\.\LEGOTOWER1" and
> on otherwise identical computers (except one is running Win98SE and the
> othre runs Win2K) only the Win2K machine can open the file.
>
> Of course, the LEGO tools work on both machines. I suspect that the
> LEGO guys are opening the private filename returned by the API
> for the tower instead of the special "\\.\LEGOTOWER1" filename.
>
> I've uninstalled and re-installed the tower drivers on the Win98 machine
> just in case, and it still doesn't work :-(
>
> I'll keep digging.
>
> Ralph
Ralph,
I retried it with a Delphi-program that I wrote some time ago. This opens
"\\.\LEGOTOWER1" without any problem:
...
const DEFAULT_PORT_NAME = '\\.\LEGOTOWER1';
...
function USB_Open():Longint;stdcall;
var hFh:Longint;
begin
hFh:=CreateFile(DEFAULT_PORT_NAME,GENERIC_READ or
GENERIC_WRITE,0,nil,OPEN_EXISTING,0,0);
result:=hFh;
end;
So keep on digging ;-)
Salut, Claude
|
|
Message is in Reply To:
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|