However I now need to alter the VB program, when I load the project into VB6 and press the run button I get error 53 (file not found) on the DLL file despite the fact that it actually resides in the directory that is both the source and output directory for this VB project.
Opinion in my project team is that the VB IDE is probably executing the code within it's own process and therefore to find the DLL it would either have to be in the same directory as the VB executables or the windows system directory or a directory that is in the PATH environment variable.
We can find no way of specifying in the project the location of the DLL or the location in which to run th program during debugging.
Is all this correct?
For reference this is how we have declared the functions
Expand|Select|Wrap|Line Numbers
- Public Declare Function CommsInitialise Lib "SCMCI_COMMS.dll" ( _
- ByRef EventFlag As Long, _
- ByRef TxLED As Long, _
- ByRef RxLED As Long _
- ) As Long