Solved

How to derive a coClass from an OCX

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Newbie Thread Programming 1 155
add combobox item based on numbers 9 144
Find and Replace Stream with 0s 8 63
PHP preg_replace code convert to Delphi 14 57
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

825 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