Thema: Delphi WINAMP TITEL AUSLESEN

Einzelnen Beitrag anzeigen

thunderbird

Registriert seit: 12. Aug 2008
4 Beiträge
 
Delphi 2006 Professional
 
#4

Re: WINAMP TITEL AUSLESEN

  Alt 16. Aug 2008, 14:11
So Hallo


Delphi-Quellcode:
function Winmp:string;unsafe;
const
  cMaxBuffer = 255;
var
  h : HWND;
  such:string;
  buffer: array[0..cMaxBuffer] of Char;
begin
 if h <> 0 then
  begin
     h := FindWindow('Winamp v1.x',nil);
     sendmessage(h,WM_GETTEXT,cMaxBuffer,integer(@buffer[0]));
  end;
end;
Ich habe das jetzt mal ausprobiert nur ohne Erfolg.

Jetzt bekomme ich ein E2089 'Invalid Typecast' Error <--- Ungültige Typumwandlung

Verstehe das net das wäre aber so richtig gewessen .

Vieleicht hat ja noch jemand eine Idee ???


Mfg Thunderbird
  Mit Zitat antworten Zitat