// matrix_dll.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #include "matrix_dll.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } MATRIX_DLL_API matrix_preferences mat_pref; // declares the global preferences. /* // This is an example of an exported variable MATRIX_DLL_API int nMatrix_dll=0; // This is an example of an exported function. MATRIX_DLL_API int fnMatrix_dll(void) { return 42; } // This is the constructor of a class that has been exported. // see matrix_dll.h for the class definition CMatrix_dll::CMatrix_dll() { return; } */