Declare an external lib

  • Thread starter Thread starter Amirallia
  • Start date Start date
A

Amirallia

Hi,

It is possible to declare the mctest.dll library without defining the
c:\Temp path in hard code.

Declare Ansi Sub pst_Test Lib "c:\temp\mctest.dll" Alias "pst_Test"
(ByVal intNomPtr As Int32, ByVal intNomLong As Int32, ByVal intNumAdrD
As Int32, ByVal intNumAdrF As Int32, ByVal intNPA As Int32)

This, is not possible :
Dim strVar string = "c:\temp\"
Declare Ansi Sub pst_Test Lib strVar & "mctest.dll" Alias "pst_Test"
(ByVal intNomPtr As Int32, ByVal intNomLong As Int32, ByVal intNumAdrD
As Int32, ByVal intNumAdrF As Int32, ByVal intNPA As Int32)


Have you an idea ?
 
Herfried K. Wagner [MVP] a formulé ce mercredi :


Sorry but it doesn't work

It alwas says (Impossible to load DLL 'mctest.dll': module not found.
(Exception de HRESULT : 0x8007007E)) when I call my WebService

Another idea ?

That error message is a little ambiguous. What it actually means is
either mctest.dll is not found or one of its dependencies. Use the
Dependency Walker tool to see what is going on.
 
Brian Gideon a formulé ce jeudi :
That error message is a little ambiguous. What it actually means is
either mctest.dll is not found or one of its dependencies. Use the
Dependency Walker tool to see what is going on.

Thank you !!!

All is ok, my DLL called an another DLL, and it wasn't with mctest.dll
 
Back
Top