Files
BlitzUtility/dllmain.cpp
T
Michael Fabian Dirks 8049964bd1 Update BlitzUtility:
- New DECLS
- Begin wrapping __cdecl sqlite3 into __stdcall functions (sqlite3 doesn't understand __stdcall)
- Use __stdcall and /EXPORT instead of __cdecl to not corrupt the stack.
- Implement two versions of the Indexer, V1 for really fast access and V2 for memory saving.

Signed-off-by: Michael Fabian Dirks <michael.dirks@realitybends.de>
2015-06-06 14:09:40 +02:00

45 lines
874 B
C++

#include "dllmain.h"
#include <list>
#include "Containers\BlitzList.h"
#include "Database\SQLite\SQLite.h"
#include "Math\Vector2.h"
#include "Math\Vector3.h"
#include "Math\Matrix3.h"
#include "Utility\Display.h"
#include "Utility\IndexerV1.h"
#include "Utility\WindowMessageHandler.h"
bool WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
// Containers
BlitzList_OnProcessAttach();
// Math
// Database
SQLite3_OnProcessAttach();
// Utility
Display_OnProcessAttach();
WindowMessageHandler_OnProcessAttach();
break;
case DLL_PROCESS_DETACH:
// Containers
BlitzList_OnProcessDetach();
// Math
// Database
SQLite3_OnProcessDetach();
// Utility
Display_OnProcessDetach();
WindowMessageHandler_OnProcessDetach();
break;
}
return TRUE;
}