To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 1286
1285  |  1287
Subject: 
Re: spirit.ocx and catching errors using MSVisualC++ 6.0
Newsgroups: 
lugnet.robotics.rcx
Date: 
Tue, 10 Jul 2001 22:24:53 GMT
Viewed: 
1515 times
  
hi Rainer,

to bad, but again a negative answer ;-(

I had the same question a few months ago (using Delphi, but that doesn't matter):
quote===================
The spirit.ocx definies a number of events (far more than in the ocx documentation are mentioned), but neither one of them seems to work.
I've logged them all, but a never saw one comming up. Someone reported the same problem with the cybermaster. Has anyone ever seen a spirit.ocx event (i.e. ondownloaddone) ??
end quote================

I even ask the question to the Lego company, but as expected ...you don't get answers from them if it's a bit off topic !!

I had a few off-line answers, no one had seen them and they all suspected that it was a bug in the spirit.ocx. That's one off the reasons a threw it away spirit after only a few weeks and now I'm using normal commport commands as you already know..


Rainer Balzerowski wrote:

Hi All,

does anyone manage to catch errors thrown from spirit.ocx ?
I try to catch the error thrown from the Poll comand.
The "Controlling LEGO Programmable Bricks Technical Reference" (pbrick.pdf)
tells me that the application using the Poll(xx,yy) Command should have an
error handler.

Using

try{
  Poll(xx,yy);
}
catch(CException* e){
  // handle exception
}

seems not ot work. Am I doing something wrong ?
Is there another way to handle errors using MSVC++6.0 ?

Any help would be greatly appreciated,

Rainer

best regards,
Stef Mientki



Message has 1 Reply:
  Re: spirit.ocx and catching errors using MSVisualC++ 6.0
 
Hi Stef, (...) damned ! (...) Hmm, spirit.ocx off topic ?? I don't think this is off topic. They offer it with the following words (from pbrick.pdf) : " .... This technical reference guide is published to allow more creative freedom in the (...) (23 years ago, 10-Jul-01, to lugnet.robotics.rcx)

Message is in Reply To:
  spirit.ocx and catching errors using MSVisualC++ 6.0
 
Hi All, does anyone manage to catch errors thrown from spirit.ocx ? I try to catch the error thrown from the Poll comand. The "Controlling LEGO Programmable Bricks Technical Reference" (pbrick.pdf) tells me that the application using the Poll(xx,yy) (...) (23 years ago, 10-Jul-01, to lugnet.robotics.rcx)

3 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