Hi all...
I'm trying to convert a function that I wrote in an EXE into an ActiveX DLL . How would I go about doing this and how would I access it from an EXE ? Thanks in advance.
Printable View
Hi all...
I'm trying to convert a function that I wrote in an EXE into an ActiveX DLL . How would I go about doing this and how would I access it from an EXE ? Thanks in advance.
To create a DLL, make an ActiveX DLL project and add your Functions and Forms to it.
To use it from within your App, you must first add refrence to it by selecting the Project > Refrences menu then check your DLL off.
You then create an instance of it and you can use all of it's Functions and Procedures.
Code:' To create an instance of the class
Dim MyClass as Class1
Set MyClass = New Class1
'Do your necesary code
'Free Class1 from the memory
Set MyClass = Nothing
Thanx Megatron for the help. I really appreciate it.