BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Design question

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
Shannon Peterson
Guest





PostPosted: Thu Dec 09, 2004 5:54 pm    Post subject: Design question Reply with quote



I have a component I created awhile back with it's base class
TComponent. I would like to build this component so that it can be used
by different compilers. The component has some property settings that
can be set by the component via the object inspector and it also has
quite a few functions that can be directly called from it. I was going
to make this a dll but I'm then loosing the ability to set the
properties via the IDE in other languages suchas VB.

I was thinking of making it an ActiveX control. I'm new to building
ActiveX controls and have only researched making ActiveX Controls from
VCL components. I have no problem with making my base class
TWinControl. I have tested some of the features of ActiveX and it looked
like it would work but I ran into a issue with my functions in the
component that can be directly called. They pass by reference and when
converting to the ActiveX control it borks up the calls. It creates the
ActiveX control but the function doesn't ever get to the code when
called because the ActiveX control has the call commented out with an
error of INCOMPAT_TYPE for the value passed by reference.

Why is that?
Is there a better way to do this other then making the componet a vcl
component first?
I'm not to familiar with making COM conrols would this be a better
solution then making an ActiveX control?

PS- I have gotten around the issue by returning the data I needed but
was just wondering if this is bad design practice and how others would
design this kind of control?

thanks for any help on this

--
Shannon Peterson
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.