AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Problem bei Recordportierung zu dotNet

Ein Thema von Boombuler · begonnen am 11. Apr 2006 · letzter Beitrag vom 11. Apr 2006
Antwort Antwort
Benutzerbild von Boombuler
Boombuler

Registriert seit: 14. Mär 2003
Ort: Osnabrück
244 Beiträge
 
Delphi 2009 Professional
 
#1

Problem bei Recordportierung zu dotNet

  Alt 11. Apr 2006, 07:30
Hi @ all

Ich sitz gerad an der Portierung von VCL nach VCL.NET und um eine tolle Thirdparty-DLL aufzurufen muss ich folgendes Record übergeben:

Delphi-Quellcode:
  TTypeId = record
    case Boolean of
      True :
        (num : LongWord);
      False :
        (str : array[0..3] of Char);
  end;
und bekomm dabei natürlich die Meldung: "Ungültige Typenumwandlung" hat jemand ne Idee wie ich das in .Net codieren kann?

Greetz
Boombuler
"Look at you, Hacker. A pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?"
SwapIt Highscore:
  Mit Zitat antworten Zitat
NicoDE
(Gast)

n/a Beiträge
 
#2

Re: Problem bei Recordportierung zu dotNet

  Alt 11. Apr 2006, 07:50
Eine der umständlichen Alternativen:
Delphi-Quellcode:
type
  TTypeId = record
    case Boolean of
      True :
        (num : LongWord);
      False :
        (str : record
           a, b, c, d: AnsiChar;
         end);
  end;
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:02 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz