In VS MFC DLL, what is the best way to export my functions so that others using .Net or similar can import them without any run time failures?.
for returning arguments use by reference, by pointer or does not matter? for example, which of the following is safer and runs after importing?.
__declspec(dllexport) void __cdecl Function1(int &val); // return val
__declspec(dllexport) void __cdecl Function1(int *val); // return val
Or, for returning array / objects using function arguments?.
for returning arguments use by reference, by pointer or does not matter? for example, which of the following is safer and runs after importing?.
__declspec(dllexport) void __cdecl Function1(int &val); // return val
__declspec(dllexport) void __cdecl Function1(int *val); // return val
Or, for returning array / objects using function arguments?.