To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.pbforthOpen lugnet.robotics.rcx.pbforth in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / pbFORTH / 624
623  |  625
Subject: 
Re: LEGO Tower API and Filenames
Newsgroups: 
lugnet.robotics, lugnet.robotics.rcx.pbforth
Date: 
Thu, 5 Feb 2004 16:33:51 GMT
Viewed: 
33 times
  
In lugnet.robotics, Ralph Hempel wrote:

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.

Did you escape the backslashes in the C string?

  CreateFile("\\\\.\\LEGOTOWER1", GENERIC_READ | GENERIC_WRITE,
     0, 0, OPEN_EXISTING, 0, 0);

Just a thought... it's easy to forget sometimes.

Mark



Message has 1 Reply:
  RE: LEGO Tower API and Filenames
 
(...) Yes, I escaped the characters. The identical code works on the Win2K machine and does not work on the win98SE machine with identical LEGO drivers installed. Hmmmm Ralph (21 years ago, 5-Feb-04, to lugnet.robotics, lugnet.robotics.rcx.pbforth)

Message is in Reply To:
  RE: LEGO Tower API and Filenames
 
(...) 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 (...) (21 years ago, 5-Feb-04, to lugnet.robotics, lugnet.robotics.rcx.pbforth)

7 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
7 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR