///////////////////////////////////////////////////////////////
// acknex.cpp : Runtime EXE
///////////////////////////////////////////////////////////////
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include "adll.h"
#define IDI_ICON1 105
///////////////////////////////////////////////////////////////
int APIENTRY WinMain(HINSTANCE hInstance, // application instance handle
HINSTANCE hPrevInstance, // always zero
LPTSTR lpCmdLine, // application command line
int nCmdShow) // window flags
{
ENGINE_VARS *ev = engine_open(lpCmdLine);
// set the application icon from the EXE icon
HICON app_icon = LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON1));
if (app_icon && ev && ev->hWnd) {
SendMessage(ev->hWnd, WM_SETICON, ICON_SMALL,(LPARAM)app_icon);
SendMessage(ev->hWnd, WM_SETICON, ICON_BIG,(LPARAM)app_icon);
}
while (engine_frame());
return engine_close();
}