Shadowrun: Awakened 29 September 2011 - Build 871
Functions
dllmain.cpp File Reference
#include "stdafx.h"
#include <stdint.h>
#include "DbConnectionFactory.h"
#include "UScriptDbProcedures.h"
Include dependency graph for dllmain.cpp:

Go to the source code of this file.

Functions

BOOL APIENTRY DllMain (HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)

Function Documentation

BOOL APIENTRY DllMain ( HMODULE  hModule,
DWORD  ul_reason_for_call,
LPVOID  lpReserved 
)

Called at various states of the DLL life-cycle This should perform all special allocation of resources during the life-cycle

Definition at line 12 of file dllmain.cpp.

{
    //creating a single instance of this factory will populate its singleton behavior
    //NOTE: In the future, this information needs to come from a config file or something
    static SraData::DbConnectionFactory factory("localhost", "root", "password", "sra_dev");

    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
        //setup the database
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
        break;
    }
    return TRUE;
}

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net