• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

How to derive a coClass from an OCX

I would like to make a class with the same interfaces defineds in an OCX.
0
pinheiro
Asked:
pinheiro
1 Solution
 
mullet_attackCommented:
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
 
BlackManCommented:
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
 
pinheiroAuthor Commented:
Thanks, I'll study more later.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now