LC
Size: a a a
LC
LC
D
LC
LC
D
LC
∆
П
IZ
IZ
IZ
∆
IZ
DP
∆
∆
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
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
// Another project, witch include .dll
int* param = nullptr;
getSmth(param); // does not work. abort() is called