M
Maxim
Hi, All!
What is the effect of using ^ with the managed type? I'm trying to create a
class library in managed c++. There is a class:
public ref class MyClass
{
public:
IntPtr^ WindowHandle;
int^ SomeNumber;
};
When I use this class in another project (C#) it is shown as
public class MyClass
{
public ValueType SomeNumber;
public ValueType WindowHandle;
public MyClass();
}
When I use type declarations without "^" the imported class becomes
public class MyClass
{
public int SomeNumber;
public IntPtr WindowHandle;
public MyClass();
}
I thought that I should always use ^ with managed classes. Could somebody
explain me that? Sorry for such a stupid question, but I'm new to Managed
C++.
Thanks in advance.
What is the effect of using ^ with the managed type? I'm trying to create a
class library in managed c++. There is a class:
public ref class MyClass
{
public:
IntPtr^ WindowHandle;
int^ SomeNumber;
};
When I use this class in another project (C#) it is shown as
public class MyClass
{
public ValueType SomeNumber;
public ValueType WindowHandle;
public MyClass();
}
When I use type declarations without "^" the imported class becomes
public class MyClass
{
public int SomeNumber;
public IntPtr WindowHandle;
public MyClass();
}
I thought that I should always use ^ with managed classes. Could somebody
explain me that? Sorry for such a stupid question, but I'm new to Managed
C++.
Thanks in advance.