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 

Inheriting from ActiveX controls

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





PostPosted: Thu Mar 01, 2007 4:21 pm    Post subject: Inheriting from ActiveX controls Reply with quote



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
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.