Code: Alles auswählen
procedure StatusProc(buffer: Pointer; len, user: DWORD); stdcall;
begin
if (buffer <> nil) and (len = 0) then
SendMessage(win, WM_INFO_UPDATE, 8, DWORD(PAnsiChar(buffer)));
end;
chan := BASS_StreamCreateURL(url, 0, BASS_STREAM_STATUS, @StatusProc, nil);
Code: Alles auswählen
Error: Incompatible type for arg no. 4: Got "<address of procedure(Pointer,LongWord,LongWord);StdCall>", expected "<procedure variable type of procedure(Pointer,LongWord,Pointer);StdCall>"
Code: Alles auswählen
function BASS_StreamCreateURL(url: PAnsiChar; offset: DWORD; flags: DWORD; proc: DOWNLOADPROC; user: Pointer):HSTREAM; {$IFDEF WIN32}stdcall{$ELSE}cdecl{$ENDIF}; external bassdll;
Danke im Voraus. )))