PDA

Click to See Complete Forum and Search --> : Reference DLL


PatOls
Aug 2nd, 2001, 09:53 AM
How do you, or can you, reference a strandard DLL in VBProject??

JoshT
Aug 2nd, 2001, 10:18 AM
You have to Declare the functions in the DLL you want to use. I think there's a tutorial on www.vbapi.com

dubae524
Aug 5th, 2001, 10:27 AM
This way:

(Public or Private) Declare (Sub or Function) SubOrFunctionName Lib "thedll.dll" (Alias "AliasName") (param1 As Something, param2 As Something, ...) (As Something)

Most of the time there is an alias, but sometimes not. You must have the alias name correct if there is one.

parksie
Aug 6th, 2001, 07:23 AM
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.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.