<r>The function you are defining is a raw C function.so in the header file, put __declspec(dllexport) extern "C" double WINAPI DoubleArg(double dRadius);that tells windows to expose the function to anything that links into the dll.Now to do any initialisation of the DLL, put in your codeBOOL APIENTR...