Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3042

exporting Library functions to some Apps

$
0
0
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?.

Viewing all articles
Browse latest Browse all 3042

Trending Articles