Original Post
Hello here is the code for my DLL: CODE: extern "C" _declspec(dllexport)int BoxVolume(int L, int H, int W); BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { return TRUE; } int BoxVolume2 (int L, int H, int W) { return (L * H) * W; } Im using Dev-C++ to compile it and im trying to compile it as a static DLL. Im not sure what im doing wrong but here are the errors: Line 1: Expected Constructor, Destructor, or type conversion "(" token. Line 1: Expected ',' or ';' before '(' token Line 3: 'BOOL'does not have name What am i doing wrong? - Cheers, Daniel