"ref" equivalent keyword in C++
-
I am using VC++.net 2003 to access matlab with C API, I have to call a function which is programmed in C#. It looks like VC++.net doesn't like "ref" keyword. >>>>>>>>>>> r = ma.GetMatrix(matname, ref a); /// <--- source code from C# <<<<<<<<<<< "ref" works well in C#, but when I call this function ("GetMatrix") in managed C++, I got an compilation error: >>>>>>>>>>> "cannot covert parameter 2 from 'double __gc[,]' to 'double (__gc *) __gc[,]' <<<<<<<<<<< I am new to VSS.net, could anybody kindly help me if there is "ref" equivalent keyword in C++? Many thanks!
-
I am using VC++.net 2003 to access matlab with C API, I have to call a function which is programmed in C#. It looks like VC++.net doesn't like "ref" keyword. >>>>>>>>>>> r = ma.GetMatrix(matname, ref a); /// <--- source code from C# <<<<<<<<<<< "ref" works well in C#, but when I call this function ("GetMatrix") in managed C++, I got an compilation error: >>>>>>>>>>> "cannot covert parameter 2 from 'double __gc[,]' to 'double (__gc *) __gc[,]' <<<<<<<<<<< I am new to VSS.net, could anybody kindly help me if there is "ref" equivalent keyword in C++? Many thanks!
hope this '&' will help
[Vote One Here, Complete my Survey....] Alok Gupta
visit me at http://www.thisisalok.tk "I Think Believe this Will Help"