To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 12045
12044  |  12046
Subject: 
RE: Using COM Controls in VC++
Newsgroups: 
lugnet.robotics
Date: 
Wed, 9 Aug 2000 12:52:30 GMT
Original-From: 
Duncan Colvin <DUNCAN@nospamCLIMAX.CO.UK>
Viewed: 
808 times
  
Check out http://codeguru.earthweb.com/

It's not lego oriented at all, but it may have what you are looking for and
if it doesn't then you can post a message there.

DBC
<Two thumbs fresh>

-----Original Message-----
From: Colin Ryan [mailto:Colin.Ryan@cs.tcd.ie]
Sent: 09 August 2000 12:35
To: lego-robotics@crynwr.com
Subject: Using COM Controls in VC++


Hi All,

I'm writing to this group as I expect there is a lot of
COM/ActiveX expertise
available here, after using the Spirit.ocx control with various IDE's.

I'm currently using legOS for a project and want to use the
LNP protocol
(legOS's UDP like transport mechanism) to facilitate
communications with the
RCX from my PC. As I am tied into the Windows platform, it
makes perfect sense
to use the WinLnp COM control that was developed by Yannis
Jeannotat. You can
find this at: http://www.geocities.com/winlnp/


My problem lies in trying to use this from Visual C++. I am
not very familiar
with the Microsoft COM environment. I have been able to
register winlnp.exe
and instantiate it in a Visual Basic project (once I've added
it to the project
references), but I still cannot use it from VC++. I do not
know how to import
it or reference it. I am reasonable familiar with C++, but
not VC++. I have
tried to find it in the 'Component and Controls Gallery'
under the 'Add to
Project' dialogue, but it is not there. I therefore do not
know how to point
VC++ to the control so I can instantiate it.

Can you please tell me what I am overlooking, and perhaps show me how
to use the control? Does anyone have some sample code? Is
there a step between
running the /regserver switch to register it, and actually
using it, that I
have left out?

Thanks in advance,

Colin Ryan


http://www.cs.tcd.ie/Colin.Ryan/nanOrb




1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
8 hours ago
Custom Search

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