Using a managed C ++ dll from C #

I created a dll using managed C ++. Now I am trying to use it with C #. I added an object to the project links. The object browser shows the object in the DLL, the path to the DLL in the object browser corresponds to the actual path.

However, when I run the C # program, it complains:

Unhandled exception: System.IO.FileNotFoundException: The specified module may not be found. (Exception from HRESULT: 0x8007007E)

Any idea what else needs to be done?

Thanks.

+5
source share
4 answers

I think that you are missing other assemblies or DLL links in your managed assembly in C ++.

+6
source

++ , DLL? , .

0

VS?

, : CRT- -

, , , .

0

, ++ , #. , " " true ( ++ dll #).

dll ++, , dll ++ dll, (.. # , ), DependencyWalker dll ++ .

DLL- MSVC. ., DependencyWalker MSVCR *.dll, MSVCP *.dll ..

0

All Articles