// In the header #define DllExport __declspec( dllexport ) DllExport int SomeFunctionName(HWND hOwner, LPTSTR lpbuffer); // The acutal function DllExport int SomeFunctionName(HWND hOwner, LPTSTR lpbuffer) { // Code here }Further, let me second Mike's recommendation on the book. Ivor Horton's "Beginning Visual C++..." (from Wrox Press) has gone through several version's. It's an excellent book.