 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Shannon Peterson Guest
|
Posted: Thu Dec 09, 2004 5:54 pm Post subject: Design question |
|
|
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 |
|
 |
|
|
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
|
|