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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referring to a function in a class in an external DLL file

Status
Not open for further replies.

jbsys

Programmer
May 6, 2005
51
0
0
CA
Can anyone please help with some example code of how to utilize a class that is part of an external dll? The dll is registered, and I can create an object using the CreateObject("myfile","user") where "myfile" is then name of the registered dll file and "user" is the name of the class contained within the dll. Also, the user class has a function called "LOGIN" which takes in two parameters: "LoginID", "Password". I need to be able to ensure that I can pass the parameters into the "LOGIN" function of the "USER" class withing the "myfile" dll. Any assistance in this regard would be greatly appreciated.

thanks.
 
[TT]Set ob = CreateObject("myfile.user")
ob.LOGIN "JDoe", "Secret"[/TT]

Or if LOGIN returns something:[TT] ret = ob.LOGIN("JDoe", "Secret")[/TT]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top