How do you, or can you, reference a strandard DLL in VBProject??
Printable View
How do you, or can you, reference a strandard DLL in VBProject??
You have to Declare the functions in the DLL you want to use. I think there's a tutorial on www.vbapi.com
This way:
Most of the time there is an alias, but sometimes not. You must have the alias name correct if there is one.Code:(Public or Private) Declare (Sub or Function) SubOrFunctionName Lib "thedll.dll" (Alias "AliasName") (param1 As Something, param2 As Something, ...) (As Something)
Actually, most DLL functions are ok as they are. It's just because people don't seem to be able to manage using things like SendMessageA (for ANSI) as opposed to the nice simple SendMessage (used in the C headers for ANSI or Unicode) in the Windows API.Quote:
Originally posted by dubae524
Most of the time there is an alias, but sometimes not. You must have the alias name correct if there is one.