Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create ActiveX DLL in Visual C++

Tags:

c++

dll

activex

Is there a tutorial/reference for creating an ActiveX DLL in Visual Studio 2008 C++ ?

I've got a DLL built with the DLLRegisterServer/UnregisterServer, and it's registered, but I'm having a little trouble figuring out what name to use to reference it (from a vbscript) and how to make sure my functions are exported correctly. Do I have to put my functions in a special class?

Thanks!

like image 903
Eric Lavitsky Avatar asked Nov 05 '22 14:11

Eric Lavitsky


1 Answers

There are a lot of details to get right. Best thing to do is to use ATL and the built-in ATL object wizard. It auto-generates a bunch of files so that the IDL, type library, registration script, class wrapper and event proxies are all done correctly.

like image 184
Hans Passant Avatar answered Nov 12 '22 15:11

Hans Passant