Pointer in Managed Code
-
I have managed c++ ref type class in DLL. In C# application, I am using the this managed DLL and referring the managed class as below: CManaged * obj = new CManaged(); with help of pointer to instance, I am accessing the member methods of CManaged class. Everything is working fine on VS 2010. Question: How C# (managed code) handle the pointers? Is it depend on my Visual Studio version?
-
I have managed c++ ref type class in DLL. In C# application, I am using the this managed DLL and referring the managed class as below: CManaged * obj = new CManaged(); with help of pointer to instance, I am accessing the member methods of CManaged class. Everything is working fine on VS 2010. Question: How C# (managed code) handle the pointers? Is it depend on my Visual Studio version?
-
NAVALMAN wrote:
Is it depend on my Visual Studio version?
No, Visual Studio is an IDE and has nothing to do with the code generation or running of programs.
Use the best guess
-
I have managed c++ ref type class in DLL. In C# application, I am using the this managed DLL and referring the managed class as below: CManaged * obj = new CManaged(); with help of pointer to instance, I am accessing the member methods of CManaged class. Everything is working fine on VS 2010. Question: How C# (managed code) handle the pointers? Is it depend on my Visual Studio version?
NAVALMAN wrote:
How C# (managed code) handle the pointers?
Since it is managed C++ it probably doesn't do anything especially clever. If C# is doing anything at all, it is just wrapping it in a small object. The C# specification might spell it out in detail.
-
NAVALMAN wrote:
How C# (managed code) handle the pointers?
Since it is managed C++ it probably doesn't do anything especially clever. If C# is doing anything at all, it is just wrapping it in a small object. The C# specification might spell it out in detail.