Results 1 to 4 of 4

Thread: Reference DLL

  1. #1

    Thread Starter
    Lively Member PatOls's Avatar
    Join Date
    Oct 2000
    Posts
    99

    Reference DLL

    How do you, or can you, reference a strandard DLL in VBProject??

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  3. #3
    Lively Member dubae524's Avatar
    Join Date
    Jun 2001
    Location
    Currently on this Super Star Destroyer being telekinetically strangled to death by Darth Vader
    Posts
    78
    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

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width