|
-
Aug 2nd, 2001, 09:53 AM
#1
Thread Starter
Lively Member
Reference DLL
How do you, or can you, reference a strandard DLL in VBProject??
-
Aug 2nd, 2001, 10:18 AM
#2
Black Cat
You have to Declare the functions in the DLL you want to use. I think there's a tutorial on www.vbapi.com
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Aug 5th, 2001, 10:27 AM
#3
Lively Member
This way:
Code:
(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.
- Justin Patrick Butler
Comme je trouve. "As I find."
- Butler family quote
Beneficia sumptos procul superant. "The benefits far exceed the costs."
- Myself
-
Aug 6th, 2001, 07:23 AM
#4
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|