I’m trying to do this:
function EndCallback(Stream: PFSoundStream; Buff: Pointer; Length, Param: Integer): ByteBool;
FEndCallback := EndCallback;
FSOUND_Stream_SetEndCallback(FSong.Stream, FEndCallback, 0);
Somehow, the compile claims that there are incompatible types “Calling conventions differ”.
Anyone that have a tip?
Thanks in advance,
On 2002-02-21 13:51, Sly wrote:
Callbacks should be specified as cdecl. Add the cdecl specifier to the end of your function declaration and it should work.
Thanks for the reply. Unfortunately, that didn’t work neither. The compiler now claims “Incompatible typs: regular procedure and method pointer”. Why??
Please login first to submit.