C# P\Invoke DLL no entry point into C++?

前端 未结 3 483
南笙
南笙 2021-01-24 06:33

I have a C++ Dll \"TheFoo.dll\" with a method \"Foo()\"

I have access to other C++ code that uses this method by simply calling:

Foo();

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-24 07:21

    If you didn't declare it extern "C" in your dll, its name has likely been "mangled". You can use something like Dependency Walker to see what symbols your dll exports.

提交回复
热议问题