Solved

How to derive a coClass from an OCX

Posted on 2000-04-10
3
188 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

Industry Leaders: 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

724 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