![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 // dllmain.cpp : Defines the entry point for the DLL application. 00002 #include "stdafx.h" 00003 #include <stdint.h> 00004 00005 #include "DbConnectionFactory.h" 00006 #include "UScriptDbProcedures.h" 00007 00012 BOOL APIENTRY DllMain( HMODULE hModule, 00013 DWORD ul_reason_for_call, 00014 LPVOID lpReserved 00015 ) 00016 { 00017 //creating a single instance of this factory will populate its singleton behavior 00018 //NOTE: In the future, this information needs to come from a config file or something 00019 static SraData::DbConnectionFactory factory("localhost", "root", "password", "sra_dev"); 00020 00021 switch (ul_reason_for_call) 00022 { 00023 case DLL_PROCESS_ATTACH: 00024 //setup the database 00025 case DLL_THREAD_ATTACH: 00026 case DLL_THREAD_DETACH: 00027 case DLL_PROCESS_DETACH: 00028 break; 00029 } 00030 return TRUE; 00031 } 00032
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.