I have a C ++ function that I want to expose in C # for consumption. The trap is that the C ++ code declaration is wrapped in a namespace :
namespace OhYeahNameSpace
{
extern "C" __declspec(dllexport) void Dummy();
}
My question is how to determine the appropriate C # structure? I believe C # code should be aware of the existence OhYeahNameSpace, am I right?
Edit: I think many people misunderstand my point of view (thanks for the typo in my original example, fixed). I ask how to get through if there is a namespace for which the exported function is enabled. One answer is missing in this part, another says that this cannot be done, and ask me to wrap it, and another one now has -1 vote.
source
share