Problem in accessing members of class in C# DLL from C++ project -


I have added a C # DLL to a C ++ project, though I have access to its variables and methods in the class Could not find. It also says that it is a structure and not a class, I do not know it is important but I thought that I should mention it. Whenever I will write or -> or: After the object, nothing appears, but it only appears on the name of the class, although they are not static.

Starting with Visual Studio 2005, you can use C ++ / CLI, Microsoft's ECMA-approved C + + Bid that allows managed and unmanaged code to be used simultaneously. In VS 2005, there are "Managed Extensions for C ++", with which you can get almost identical, but you can use very good syntax to write managed code in C ++ (with many double underscores) Have to do.

With C ++ / CLI, you can mix managed and unmanaged code in your project, and use the C # type directly. IMHO, it is very easy to use COM.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -