Hi,
I'm having problems calling the following function in a dll written in C++, from VB6:
I've converted it from the C++ call which is:Code:Private Declare Sub HaxAnim_setMarker Lib "HaxMio.dll" (ByVal haxAnim As Long, ByVal StartFrame As Integer, ByVal EndFrame As Integer, ByVal looping As Boolean)
We are currently able to compile an .exe in VB and debug it in C++.Code:void __stdcall HaxAnim_setMarker(void * haxAnim, int startFrame, int endFrame, bool looping)
The problem is with startFrame. When running from the .exe the dll receives a meaningful value (e.g. 3), but when running from within VB it receives a garbled value (e.g. 10384030283), i.e. not the one I send it from within VB code.
Can anyone think of a reason why this call would be sending a correct value as a compiled exe and a bad value from within vb6.
thanks
Paul




Reply With Quote