using c# dll in project c++ -
i want use dll made in c#(visual studio 2008) in c++ project(visual studio 2003). how ? please heeelp
there more com interop, msdn faq lists lesser known methods:
2.2 how call .net assembly native visual c++?
there 4 methods call .net assembly native vc++ code. microsoft all-in-one code framework has working examples demonstrate methods.
native vc++ module calls clr hosting apis host clr, load , call .net assembly. (all-in-one code framework sample code: cpphostclr)
if .net assembly can exposed com component, native vc++ module can call .net assembly through .net – com interop. (all-in-one code framework sample code: cppcomclient)
reverse pinvoke: managed code call native passing delegate native code can call back. (all-in-one code framework sample code: cspinvokedll)
if module containing native vc++ code allowed enable clr, native vc++ code can call .net assembly directly through “it works”, or “ijw”, mechanism. (all-in-one code framework sample code: cppcliwraplib)
Comments
Post a Comment