Xojo Error when calling dll

`
//Declare Function ltcdump Lib “E:\LTC\FileRe\dlltest\a\WaveOutLtc.dll” (filename As CString, fps_num As Integer, fps_den As Integer, channel As Integer, first_timecode As CString, last_timecode As CString, RedFps As Integer) As Integer
Declare Function ltcdump Lib “./WaveOutLtc.dll” (filename As CString, fps_num As Integer, fps_den As Integer, channel As Integer, first_timecode As CString, last_timecode As CString, RedFps As Integer) As Integer
//Declare Function ltcdump Lib “E:\LTC\FileRe\dlltest\a\WaveOutLtc.lib” (filename As CString, fps_num As Integer, fps_den As Integer, channel As Integer, first_timecode As CString, last_timecode As CString, RedFps As Integer) As Integer

dim my_first_timecode As CString dim my_last_timecode As CString dim my_fps As Integer Dim result1 As Integer result1 = ltcdump(“E:\LTC\FileRe\dlltest\a\Rec 0002.wav”, 30, 1, 1, my_first_timecode, my_last_timecode, my_fps) MsgBox("The my_first_timecode is: " + Str(my_first_timecode)) MsgBox("The my_last_timecode is: " + Str(my_last_timecode))

`

This dll was written in C. I have no problem calling it in C. The function is as follows int __declspec(dllexport) ltcdump(char* filename, int fps_num, int fps_den, int channel, char* first_timecode, char* last_timecode,int RedFps)

Runtime ErrorPress OK to ContinuePress Cancel to Quit. Please report what caused this erroralong with the information below. Common\Loaders\Loader.cpp:173Failure Condition: 0Failed to load library ./waveQutLtc.dllThe specified module could not be found

Are the targets compatible (ie: 32 bit build must use a 32 bit dll / 64 bit compile must use a 64 bit dll).

Don’t use ./ in the lib name. If the DLL is in the same folder as the EXE then use the filename only.

Declare Function ltcdump Lib "WaveOutLtc.dll"

If this is a Run (debug) action, make sure you’re copying the dll into the debug folder.