Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#38

Re: Dynamisches Array oder Klasse als Array auslegen

  Alt 26. Sep 2006, 06:36
Guten Morgen @all

Delphi-Quellcode:
  //WinampDSPInfo Klasse
  WINAMPPLUGINPROPDSP = ^WINAMPPLUGINPROP_TAG_DSP;
  WINAMPPLUGINPROP_TAG_DSP = record
     csH : RTL_CRITICAL_SECTION; // CRITICAL_SECTION
     handle : DWORD;                      // DSP handle
     NumberOfModules : UINT;                      // number of modules in the dsp
     hDll : HWND;                // the dll instance
     pModule : PWinampDSPHeader;       // module header
     pDSP : PWinampDSPModule;       // current selected dsp module
     hchannel : DWORD;                      // channel associated to dsp
     module : Integer;                      // curent selected dsp module
     hdsp : HDSP;                         // optional dsp handle
     DSP_Window_Emu : HWND;             // related fake window handle
     DSP_Atom_Emu : ATOM;                   // related fake window atom
     songTitle : array[0..MAX_PATH-1] of char; // the playing song title
     fileName : array[0..MAX_PATH-1] of char; // the playing file name
     info : BASS_CHANNELINFO;       // channel info
  end;
Wie kann ich erreichen das bei der übergabe des '@' Operators an

EnterCriticalSection(@winampDsp^.csH);
kein AV auftritt ?

Also ohne Operator hängt sich die Anwendung auf oder es gibt ein AV.
EnterCriticalSection(winampDsp^.csH);
Mit Operator kommt diese Meldung!
Zitat:
[Pascal Error] BassWaDSP.pas(330): E2033 Types of actual and formal var parameters must be identical
Weiß jetzt nicht wie ich den Operator in der Classe einfügen muss damit die Meldung nicht mehr kommt.

Gruß
  Mit Zitat antworten Zitat