Einzelnen Beitrag anzeigen

Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#10

AW: is a 'field' but is used like a 'type'

  Alt 10. Apr 2015, 21:25
Variablen in einer Klasse nennt man Feld (engl. Field)
Code:
  [SuppressUnmanagedCodeSecurity]
  // Ich bin eine Klasse
  public sealed class TagsLibraryDefs
  {
    // Ich bin ein Feld, heiße HTags und bin vom Typ IntPtr
    IntPtr HTags = IntPtr.Zero;

    //TagsLibrary_Create
    [DllImport("TagsLib.dll", EntryPoint = "TagsLibrary_Create", CharSet = CharSet.Auto)]
    // Ich bin eine Methode und liefere einen Wert vom Typ HTags zurück
    public static extern HTags TagsLibrary_Create();

  }
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat