If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > DLL relative path.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-03, 14:20
mvargasp mvargasp is offline
Registered User
 
Join Date: Aug 2002
Posts: 25
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.
Reply With Quote
  #2 (permalink)  
Old 02-20-03, 15:50
playernovis playernovis is offline
Registered User
 
Join Date: Nov 2002
Location: San Francisco
Posts: 251
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

jiri
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On