Calling a function from a DLL
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
Code:
#include <stdio.h>
extern "C"
{
__declspec (dllexport) double __stdcall testfunc (double a)
{
double b;
b = triple(a);
return b;
}
}
and the function that I'm trying to "glue" to it is
Code:
double triple (double a)
{
double b;
b = 3*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.