Wrapper C++ in C++/CLI clr:safe for C# COM Interop -
is there way make wrapper clr:safe project in c++ unmanaged?
my little story started way,
"boy, have project 'c# com interop' 1 have use 'c++ library' , must result in 'one' (dll com)."
ok, after few days searching, realized possible use c++ library in 2 ways: adding in resources , calling pinvoke or creating wrapper c++/cli. pinvoke can not have 1 dll(right?). opted second option "wrapper c++/cli". seemed easy @ beginning, recompile library visual studio 2005 2010, create clr project (with keypair.snk , re-signed) added library. works! \0/ use ilmerge, ohhhoo this? clr:safe? why? ok, try recompile c++/cli clr:safe erros appears...
how can fix this?
thanks in advanced,
ilmerge isn't right tool this.
instead, compile c# .netmodule, , pass c++/cli linker along c++/cli object files.
Comments
Post a Comment