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

前端 未结 3 455
南笙
南笙 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:15

    You should provide more information on your C++. Try using extern "C" __declspec(dllexport) instead. C++ exports with strange names so using extern "C" avoids that.

提交回复
热议问题