|
-
Oct 29th, 2002, 02:52 PM
#1
Thread Starter
New Member
Referencing a DLL programatically
Is this possible? I've been messing around with this for a bit, but haven't been able to successfully do this.
I have an Active-X DLL called "Rodac.dll". with a class called clsDateEntry, containing a function called UserSelectedDate (with several string variables).
I've successfully gotten it working by referencing the DLL, but I would prefer to remove this necessity.
The following is the code I've tried:
Declare Function UserSelectedDate Lib "C:\Rodac.dll" (ByVal strIncuType As String, ByVal strDate As String, ByVal strIncuNumber As String) As Integer
To call the function:
DateReturn = UserSelectedDate(strIncuType, strDate, strIncuNumber)
Any options? I would also eventually like to move the Declare outside the general statements area, as the actual path to the dll will change.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|