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 / 1287
1286  |  1288
Subject: 
Re: spirit.ocx and catching errors using MSVisualC++ 6.0
Newsgroups: 
lugnet.robotics.rcx
Date: 
Tue, 10 Jul 2001 22:53:29 GMT
Viewed: 
1647 times
  
Hi Stef,

In lugnet.robotics.rcx, Stef Mientki writes:
hi Rainer,

to bad, but again a negative answer ;-(

damned !


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 !!

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 programming for more experienced users. The technical
reference guide documents how the programmable bricks can be programmed by
means of Visual Basic. We hope that the release of this document will
inspire even more people to develop imaginative applications of the
programmable brick. ...."

The only thing of topic is that you are not using Visual Basic. But events
won't work with visual basic aswell, or am I wrong here ??

If they are interested in "imaginative applications of the programmable
brick" they should offer the source of their spirit.ocx !?!?


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

Anyone else any suggestions ??????????


Thanks Stef, best regards

Rainer



Message is in Reply To:
  Re: spirit.ocx and catching errors using MSVisualC++ 6.0
 
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), (...) (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
    

Custom Search

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