Results 1 to 5 of 5

Thread: Windows API

  1. #1
    Guest

    Question

    I'd like to use a DLL inside of my VB Project, but the dll won't be in the Windows System directory. Is this allowed? How would you do it?

    for example given the link

    Private Declare Function myFunction Lib "mydll.dll" Alias _
    "myFunctionA" (args) As sometype

    would i just put an absolute path for Lib as in
    "c:\absolute\path\mydll.dll"?

    Thanks

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    yes its allowed

    DocZaf
    {;->

  3. #3
    Guest
    given that's it's allowed. does one access it the way i explained it in my post?

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb

    Yes, you can write a full filepath there, but will it be better copy your dll into the system directory.

    The all you need is the library file name regardless the file path.

    Private Declare Function myFunction Lib "mydll.dll" Alias _
    "myFunctionA" (args) As sometype

    But, you only can create this type of library with VC++ and not VB.


  5. #5
    Guest
    what about using a URL? like

    http://www.myurl.com/url.dll

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