Here is the declaration Declare Function CallDllRequest Lib “C:Program FileswebDLLintDll.dll” Alias “calling_dll_request” (ByVal strUrl$) As String — this is one line. Here is the call strDLL = CallDllRequest(URL) I am getting Specified DLL Function not found intDll is a custom dll and the “alias” does exist in the dll. Michael

Hi Michael,

Assuming the fact that correct parameters were used for the function call you can check for the following things

  1. You gave the right DLL name, but it isn’t the version that contains the specified function.
    (You may have the correct version on your machine, but if the directory containing the wrong version precedes the directory containing the correct one in your path, the wrong DLL is accessed)

  2. If the function takes string-type arguments, try appending an “A” to the function name.
    (An “A” at the end of the function name specifies the ANSI version)

Hope this is of some use to you.

Regards,
Arvind.

Michael -

Here are some ideas you may want to explore:

  1. make sure C:Program FileswebDLL is on your environment path
  2. Plan B: If the ‘path’ trick doesn’t work, then it may be a registry issue to get that DLL recognized. You may be able to just edit some existing keys, or else (plan c) try more formal COM registration techniques.

good luck
js