#include __declspec(dllexport) short _cdecl test( short a, short b, short c, short d ) { return a+b+c+d; }