Re: Struct Layout in C# to Delphi.Net
From: Marc Scheuner [MVP ADSI] (m.scheuner_at_inova.SPAMBEGONE.ch)
Date: 02/27/04
- Next message: Vadym Stetsyak: "Re: How do u program an automatic capture with webcam?"
- Previous message: Stefan Turalski \(stic\): "Re: Local variables - quick question"
- In reply to: MuZZy: "Struct Layout in C# to Delphi.Net"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 27 Feb 2004 07:36:46 +0100
>1. in C# they declare a const: const short = 1;
The same:
const
Short = 1;
>2. [StructLayout(LayoutKind.Sequential, Pack=2)] It is placed before class
>declaration. What the hack is that? And how i go about Delphi?
Same:
* add "System.Runtime.InteropServices" the the uses clause
[StructLayout(LayoutKInd.Sequential, Pack=2)]
TMyClass = class.......
.....
end;
Remember: Delphi 8 for .NET *IS* a full featured .NET language - no
need to break or change stuff from C# - it uses the SAME foundations!
Marc
- Next message: Vadym Stetsyak: "Re: How do u program an automatic capture with webcam?"
- Previous message: Stefan Turalski \(stic\): "Re: Local variables - quick question"
- In reply to: MuZZy: "Struct Layout in C# to Delphi.Net"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|