How to compile activex dll in vc?

  • Thread starter Thread starter Hans Tombeux
  • Start date Start date
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
 
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
 
Back
Top