サンプルです。
・Win32DLLを新規作成して以下の関数をエクスポートします。
extern "C" __declspec(dllexport) int __cdecl Gosa()
{
double a = 4.047;
double b = 1.8413;
double x = 0.052;
double y = 0;

y = (x - a) / b;

return 0;
}
(続く)