Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002

    Unanswered: DLL relative path.

    Hi all,

    I have a not COM dll and I want to use it from a VB application. So I have to declare it as an API,

    Public Declare Function XXXX Lib _
    "C:\.....\XXXX.dll" _
    (ByVal ..., _
    ByVal ...) As Long

    Is there a way to declare this function, but specifying a dynamic path. If I try to do the following I get an error (file not found).

    Public Declare Function XXXX Lib _
    "XXXX.dll" _
    (ByVal ..., _
    ByVal ...) As Long

    Thanks in advance.

    God Bless.

  2. #2
    Join Date
    Nov 2002
    San Francisco
    if you put it to folder you have defined in PATH it will work...

    try to put it to your windows system folder, it should work.

    look at you control panel-system-environment PATH variable


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts