• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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