Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3860

Xojo Error when calling dll

$
0
0

`
//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

4 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3860

Trending Articles