Brooks.Wait
New Member
- Joined
- May 11, 2011
- Messages
- 2
I am trying to declare a dll function in VB6.
The syntax for a Declare statement is as follows:
[Public | Private] Declare Function name Lib "libname" [Alias "aliasname"] [([arglist])] [As type]
I will not know the name of the dll until run time. So, at run time I read the dll name into a string variable and try to pass it to the "libname" portion of the Declare statement above. Is there anyway to do this? When I try to do this I get a compile time error. I am using VB 6.
Any help is greatly appreciated! Thanks!
The syntax for a Declare statement is as follows:
[Public | Private] Declare Function name Lib "libname" [Alias "aliasname"] [([arglist])] [As type]
I will not know the name of the dll until run time. So, at run time I read the dll name into a string variable and try to pass it to the "libname" portion of the Declare statement above. Is there anyway to do this? When I try to do this I get a compile time error. I am using VB 6.
Any help is greatly appreciated! Thanks!