Declare an external lib

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 ?
 
B

Brian Gideon

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.
 
A

Amirallia

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top