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 / 1298
1297  |  1299
Subject: 
Re: working c++ program?
Newsgroups: 
lugnet.robotics.rcx
Date: 
Wed, 18 Jul 2001 20:14:38 GMT
Viewed: 
1484 times
  
plz. I just need to how how everything is included and linked. I did
declare it as a member variable. Thanks for your help!

Jason

P.S. You can just email it to me if you like. Thnx

Rainer Balzerowski wrote:

In lugnet.robotics.rcx, Jason Stern writes:
Does anyone have a working c++ rcx program? I'm having trouble getting
microsoft visual c++ 6.0 to integrate spirit.ocx successfully. Maybe if
I had a working program to look at, I could figure it out. I got spirit
"installed", however, I can't use any of the commands. The activeX
control tester that came with c++ shows that spirit is working (i can
run commands one at a time), but i can't run in program commands. each
time I try to run something like m_rcx.Initcom() I get errors, like
missing ";" before the ".". occasionally, i also get m_rcx undefined,
but I did declare it as a member variable. Thanks for any help

Jason

Hi Jason,

did you declare it as a control member variable ?

1.  Project\Add To Project\Components and Controls...
2.  Registered ActiveX Controls
3.  Choose "Spirit Control" then "Insert"
4.  Put the Spirit Control (the Lego Sign) in your Window(Dialog)
5.  Right-click on the Spirit Control, ClassWizard
6.  Member Variables - Add Variable (IDC_SPIRITCTRL1 highlighted)
7.  Give the control a name. Category must be Control.

Now you should be able to use spirit.ocx.

I've prepared a little sample. But I use german mfc-classes, so i have to
include them. Because of that the ZIP-file is somthing less 1MB. Please let
me know if you want to have it.

Rainer



Message is in Reply To:
  Re: working c++ program?
 
(...) Hi Jason, did you declare it as a control member variable ? 1. Project\Add To Project\Components and Controls... 2. Registered ActiveX Controls 3. Choose "Spirit Control" then "Insert" 4. Put the Spirit Control (the Lego Sign) in your (...) (23 years ago, 18-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