How to call c++ dll struct constructor from c#?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hello all, I have been call all methods of dll by DllImport[]. But how to call constructor of structure from C#.
Divyang Mithaiwala
-
Hello all, I have been call all methods of dll by DllImport[]. But how to call constructor of structure from C#.
Divyang Mithaiwala
See this : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcmg\_accessingcodefromframeworkobjects.asp First : you must write a code in Managed C++ to wrap your Unmanaged C++ code. Second : Use your Managed C++ Classes in your C# Code.