How to compile activex dll in vc?

H

Hans Tombeux

Hello NG,

is it possible to compile a activex dll (which is usable in vb6) under vc7 ?

I`ve got a little sample project which is of type "Dynamic Library (.dll)"
and i´d like to use the compiled dll in Vb6.

Best regards
Hans
 
C

Carl Daniel [VC++ MVP]

Hans Tombeux said:
Hello NG,

is it possible to compile a activex dll (which is usable in vb6) under vc7
?

I`ve got a little sample project which is of type "Dynamic Library (.dll)"
and i´d like to use the compiled dll in Vb6.

Yes. An ActiveX object is nothing more than a self-registering in-process
COM server. You can certainly create such an object in C++, any version.

You might want to start by creating an ATL project, and then use the class
view to add a new COM object to the project.

Once you've made a proper COM object, you can use it in any environment that
is COM compatible regardless of the language/version used to implement it.

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top