Hi,
This might be something stupid, but I have a couple value structs that
I'm using in my CLI layer. I pass them up via callbacks to the c#
layer. In the c# layer, it wants my callback methods to have the
agurment type as ValueType, rather then the actual type, am I missing
something?
Jochen Kalmbach [MVP] - 29 May 2007 06:50 GMT
Hi DaTurk!
> This might be something stupid, but I have a couple value structs that
> I'm using in my CLI layer. I pass them up via callbacks to the c#
> layer. In the c# layer, it wants my callback methods to have the
> agurment type as ValueType, rather then the actual type, am I missing
> something?
Are your value types inside a namespace?
C# can only handle types in namespaces...
For example:
namespace Foo
{
public value Bar
{
public: int i;
};
}
Greetings
Jochen
Mattias Sjögren - 29 May 2007 20:04 GMT
Jochen,
>C# can only handle types in namespaces...
What makes you say that? There's no such requirement in C#.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jochen Kalmbach [MVP] - 29 May 2007 20:30 GMT
Hi Mattias!
>>C# can only handle types in namespaces...
>
> What makes you say that? There's no such requirement in C#.
I thought there was some restrictions... sorry... it seems to be not...
@OP: You need to show some code...

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/