I've got a DLL that calls another function. The problem is that I don't know how to "glue" the function to the DLL. The DLL is
and the function that I'm trying to "glue" to it isCode:#include <stdio.h> extern "C" { __declspec (dllexport) double __stdcall testfunc (double a) { double b; b = triple(a); return b; } }
I've tried to just put them in the same source file but that didn't seem to work. Any help with this is appreciated.Code:double triple (double a) { double b; b = 3*a; return b; }