Page 1 of 1

DLL call converting from c++

Posted: Mon Aug 11, 2003 11:04 pm
by troy
Hi All,

There is a vendor.dll with Func1(). I want to call it from pb. Can anyone point me to correct usage of exact dll conversion from c++ source to pb syntax. (CallFunction?, CallFunctionFast?, CallCFunctionFast?...)

Here is a header:
===
...
#define APIConst 0xFFFFFFFF
#define capiFunc1 8
...
typedef DWORD (__stdcall *TapiFunc1) ();

endif
===

c++ code:
===
...
void __declspec(dllexport) __stdcall Func1(int var1, int var2){

myVar1 = var1;
myVar2 = var2;
}
...
===

Is there a difference in this case which one method to use - CallFunction?, CallFunctionFast?, CallCFunctionFast?...

Thanks.