C++/cli to c++: Error s incompatible with “void (__stdcall *)(int i, std::string str)”
问题 I am new to C++/cli so please excuse me for silly questions or core mistakes: My C++/CLI class Library that is called by C# has only one method: ThreadsCppWrapper.h namespace namespace ThreadsCppWrapper { public ref class ThreadsCppWrapperClass { public: ThreadsCppWrapperClass(); // Constructor System::String^ mytrainOp(System::MulticastDelegate^ callbackfunction); private: MyThreadsCpp::MyThreadsCppClass* ptr; }; } ThreadsCppWrapper.cpp System::String^ ThreadsCppWrapper: