Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call Function from DLL problems

Status
Not open for further replies.

astonmak

MIS
Feb 14, 2003
41
0
0
CN
Hi All,

I got class module and have been compiled into DLL through ActiveX DLL project, but I know how to declare it and call its function in my application project, is there any reference and sample code?

Thanks
ASTON
 
Hi

Take the reference of the Dll in the project.

Then in code:

Method 1:
Dim obj as MyDll.ClassName
Set obj = New MyDll.ClassName

Call obj.MyMethod

Method 2:
Dim obj as New MyDll.ClassName

Call obj.MyMethod


You can do the instancing by using CreateObject & GetObject as well.

Regards
Som
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top