I am wondering if it is possible to pass my invoked C# object between c++ functions? I can already call my C# dlls from my native code, but now I need to pass a object between c++ functions which also means that I need to declare it in the header file...
When defining it in my header file I get the following error:
BOOL Exists(Api ^api);
Error 60 error C3395: 'ApiBase' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
Does anyone know how I should handle this in my header?
__declspec(dllexport).BOOL Exists(Api ^api);is intended to be a part of native dll's api?public ref classfrom C#, just by adding a reference to the DLL.