G
Guest
Hello,
How can I return a struct type e.g. System:rawing:oint from a managed
c++ class to a C# assembly?
When I have the declaration of the managed C++ class's member function as
System:rawing:oint __gc* GetData();
then the C# assembly can't see it, presumably because System.Drawing.Point
is a struct rather than a class. The managed c++ library compiles OK, it's
just the C# assembly doesn't see that method with that return value.
It works ok when I use a class such as System.String.
Is there some part of the syntax I'm missing?
Any help much appreciated
Thanks
How can I return a struct type e.g. System:rawing:oint from a managed
c++ class to a C# assembly?
When I have the declaration of the managed C++ class's member function as
System:rawing:oint __gc* GetData();
then the C# assembly can't see it, presumably because System.Drawing.Point
is a struct rather than a class. The managed c++ library compiles OK, it's
just the C# assembly doesn't see that method with that return value.
It works ok when I use a class such as System.String.
Is there some part of the syntax I'm missing?
Any help much appreciated
Thanks