Solved

How to derive a coClass from an OCX

Posted on 2000-04-10
3
187 Views
Last Modified: 2010-04-04
I would like to make a class with the same interfaces defineds in an OCX.
0
Comment
Question by:pinheiro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
mullet_attack earned 100 total points
ID: 2702202
if you import the type library from the OCX, and select "install" it should create a VCL component wrapper around the OCX. You will then have the source defining the OCX interfaces. (D5) Create your own class, using the type library editor to create a duplicate of the OCX's interface, and then add your own implementation.

Any help to you?
0
 
LVL 7

Expert Comment

by:BlackMan
ID: 2711547
In D4, you can't inherit from an OCX wrapper, I'm not sure if it's fixed in D5.
You'll get an AV if when you instantiate the inhrited class.
0
 

Author Comment

by:pinheiro
ID: 2712029
Thanks, I'll study more later.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question