 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Roddy Pratt Guest
|
Posted: Thu Mar 01, 2007 4:21 pm Post subject: Inheriting from ActiveX controls |
|
|
I've successfully imported the Apple Quicktime control as a C++Builder
component, but I now want to have a control which inherits from that
one.
My inherited component is just a dummy at this stage - no additional
methods/properties, and look like this:-
class PACKAGE TQTControl2 : public TQTControl
{
virtual __fastcall TQTControl2(TComponent* AOwner) :
TQTControl(AOwner)
{};
virtual __fastcall TQTControl2(HWND Parent) :
TQTControl(Parent)
{};
};
My package builds OK, and I can use both the TQTControl and TQTControl2
at design time. But, when I run an application with a TQTControl2 on a
form, the app crashes with an AV exception as soon the mouse enters the
area of the TQTControl2 on the form. The TQTControl on the same form
works just fine.
I don't know much about using Activex controls - should I be able to
create new controls which inherit from Activex controls in this way, or
is there something else subtle with GUIDs that I need to do...?
- Roddy |
|
| 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
|
|