Re: C++/CLI and bitfield marshalling
From: Brandon Bray [MSFT] (branbray_at_online.microsoft.com)
Date: 02/23/04
- Next message: Pavel A.: "Re: How to set file properties (not SetFileAttributes)"
- Previous message: Pavel A.: "Re: Attach metadata to a dll or exe"
- In reply to: .: "Re: C++/CLI and bitfield marshalling"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Feb 2004 14:06:09 -0800
. wrote:
> Whats this "!" syntax? I never seen it before.
It is how you write finalizers in the new syntax. It's similar to how
destructors are written with the ~ syntax.
> I have done the usual mixed mode wrapper with a library being a proxy for
> every method and have a few structs that I have to pass in and out so I
> mirrord those. But these bitfields got me stumped.
> So IF I understand that right I basically wrap this bitfield and set it
> via a ctor in the CLR type, unless I specify propsets for every member,
> right?
Exactly what you do depends on the abstraction. The example I showed simply
gave a way to wrap an existing type that has bit fields into a managed type
that C# can understand. The point is that there is no need to encode bit
types inside a ref or value class because you can simply wrap the native
type.
-- Brandon Bray, Visual C++ Compiler http://blogs.msdn.com/branbray/ This posting is provided AS IS with no warranties, and confers no rights.
- Next message: Pavel A.: "Re: How to set file properties (not SetFileAttributes)"
- Previous message: Pavel A.: "Re: Attach metadata to a dll or exe"
- In reply to: .: "Re: C++/CLI and bitfield marshalling"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|