Hi
I was trying to use my C# DLL inside my Visual c++ Project. I followed your instruction with #using <mydll.dll>
However, it reports ..
c:\Win32TestProg.cpp(5): fatal error C1190: managed targeted code requires '#using <mscorlib.dll>' and '/clr' optio
Please advice
Thank
----- Aravind C wrote: ----
HI Kanaiya
Is the VC++ project, a managed extensions project o
an unmanaged VC++ project ?
For the former, you can use the #using directive to reference an
managed assemblies
#using <MyCsharpAssembly.dll
For the latter, you can expose your managed types via COM Intero
(generate a tlb via Regasm/tlbexp), and then consume the typelibrar
from your unmanaged VC++ COM-aware client
Regards
Aravind
"Kanaiya" <ka*************@hotmail.com> wrote in messag
news:uN*************@TK2MSFTNGP10.phx.gbl..
how to use c# dll into visual c++ project> With regards
Gangani Kanaiya