∆
// Another project, witch include .dll
int* param = nullptr;
getSmth(param); // does not work. abort() is called
Size: a a a
∆
// Another project, witch include .dll
int* param = nullptr;
getSmth(param); // does not work. abort() is called
IZ
IZ
// .dll
extern "C" __declspec(dllexport) void getSmth(int* output)
{
// some code to init output param
}
// Another project, witch include .dll
int* param = nullptr;
getSmth(param); // does not work. abort() is called
// .dll
extern "C" __declspec(dllexport) int getSmth()
{
// some code
}
// Another project, witch include .dll
int param = getSmth(); // ok
∆
// .dll
extern "C" __declspec(dllexport) void getSmth(int& output)
{
// some code
}
// Another project, witch include .dll
int param;
getSmth(param); // does not work. abort() is called
∆
∆
∆
IZ
IZ
U
IZ
[
U
FS
U
U
FS
FS
IZ