
Using DLL's and Declare Function statements
The default directory when in the IDE is different from the default
directory when running the EXE, unless the EXE is in the same directory as
the IDE. Could this be your problem?
Quote:
> Ok, it's just wierd.
> It seems every time I try to reference the .dll via relative pathnames
> (as in the below example), I get a "File Not Found", even though the dll
> is in the same directory as the project.
> Private Declare Function DoMyCommand Lib "MyExternal.dll" (ByVal
> lpBuffer As String) As Integer
> In order to get things to work, I must include the absolute pathname
> ("C:\...\MyExternal.dll"), which I clearly do not want to do. The worst
> part is, in example projects using dll's, they do not include the
> absolute pathname - they just provide the name of the dll.
> Any ideas?
> --
> Mark Young