2013-12-19 13:35:56 +01:00
|
|
|
/////////////////////////////////////////////////
|
|
|
|
// Launcher to launch Danbias server or client //
|
|
|
|
/////////////////////////////////////////////////
|
|
|
|
#define NOMINMAX
|
|
|
|
#include <Windows.h>
|
|
|
|
#include <vld.h>
|
|
|
|
|
2013-12-21 17:37:30 +01:00
|
|
|
|
|
|
|
#include <DanBiasServerAPI.h>
|
2013-12-19 13:35:56 +01:00
|
|
|
|
|
|
|
int WINAPI WinMain( HINSTANCE hinst, HINSTANCE prevInst, PSTR cmdLine, int cmdShow)
|
|
|
|
{
|
|
|
|
if(SetDllDirectory(L"..\\DLL") == FALSE)
|
|
|
|
{
|
|
|
|
return cmdShow;
|
|
|
|
}
|
|
|
|
if( DanBias::DanBiasServerAPI::Initiate() == DanBias::DanBiasServerReturn_Sucess)
|
|
|
|
{
|
|
|
|
DanBias::DanBiasServerAPI::Run();
|
|
|
|
DanBias::DanBiasServerAPI::Release();
|
|
|
|
}
|
|
|
|
return cmdShow;
|
|
|
|
}
|