Creating an ActiveX DLL
Posted on 2006-05-07
I'm writing an ASP script that is pulling data from a vendor. They provided a DLL that I need to use in order to communicate with their server. From what I understand, I need to encapsulate the functions in this DLL into an ActiveX DLL - and I'm not sure where to start.
I've got a list of Declare statements provided by the vendor:
Declare Function myFunction1 Lib "vendor.dll" (Byval myData as String)
Declare Function myFunction2 Lib "vendor.dll" (Byval myData as String)
I assume I need to use Visual Studio to compile the DLL (see? I'm really new to this...). Can someone provide a step-by-step? I know that I've got VS.Net - can I compile a VB6 DLL using that? I assume I need to create a new project, then put the declare statements inside a class. What do I need to do to compile? How do I indicate that it's an ActiveX DLL? Sorry for my ignorance...