To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 259
258  |  260
Subject: 
Re: converting Mac to PC and the Lego remote
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 2 Dec 1999 03:56:20 GMT
Viewed: 
2062 times
  
In article <FM2KxB.Bz2@lugnet.com>, "Jenny" <jenbkr@iastate.edu> wrote:

Are there any reference pages that show how to convert nqc from a Mac to a PC
version, vice versa?  Or perhaps a program that will do it?

I assume you want to move an NQC program (and not the compiler itself)
from a Mac to a PC.  If so, just copy the file.  The NQC language is the
same regardless of the environment it is used in (Mac, Windows, Linux,
FreeBSD, OS/2...)

Also, the two IDEs (MacNQC and RcxCC) use the same compiler as the command
line version of NQC, so again programs are portable.

I am also having some trouble with the Lego remote.  It can send messages to a
RCX, but I only am able to do this using Lego Mindstorms.  Does anyone know
the code you have to use?
thanks much
Jenny

I think something like this will work (it plays a sound each time if
receives a message):

task main()
{
  while(true)
  {
    until (Message() != 0);
    PlaySound(SOUND_CLICK);
    ClearMessage();
  }
}


---

Dave Baum

--
reply to: dbaum at enteract dot com



Message has 1 Reply:
  Re: converting Mac to PC and the Lego remote
 
Yes I am just converting programs and no the language is not the same regardless of the enviornment. On a PC wait = until on a Mac, void does not compile, and several others. I recently received The Unofficial Guide to LEGO® MINDSTORMS™ Robots By (...) (25 years ago, 2-Dec-99, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  converting Mac to PC and the Lego remote
 
Are there any reference pages that show how to convert nqc from a Mac to a PC version, vice versa? Or perhaps a program that will do it? I am also having some trouble with the Lego remote. It can send messages to a RCX, but I only am able to do this (...) (25 years ago, 1-Dec-99, to lugnet.robotics.rcx.nqc)

6 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
    

Custom Search

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