I am trying to access some functions in a DLL created in VC. When I make the call to the function VB returns the error that it can't find the DLL. I've checked the spelling SEVERAL times. It's spelled correctly. I've also tried placing the DLL in the local folder where my VB APP is, in the Windows System folder and in the Windows System32 folder. The VC program finds the DLL in all these locations, but the VB program does not. I've even tried hard-coding the path to the DLL. Still no luck. Here's the declaration and call:
Declare Function ZMDOpenPort Lib "ZMDSerialComm.dll" Alias "OpenPort" (ByVal port As Long, baudRate As Long, parity As Long, stopBits As Long, nCOM As Long) As Long
Call ZMDOpenPort( MyPort, MyBaud, MyParity, MyStop, MyCom )