2007-10-23 21:49:18 +00:00
|
|
|
#include <windows.h>
|
2007-10-25 21:42:14 +00:00
|
|
|
#include "ElfViewFrame.h"
|
2007-10-26 18:24:20 +00:00
|
|
|
#include <boost/algorithm/string.hpp>
|
2007-10-25 21:42:14 +00:00
|
|
|
|
|
|
|
using namespace Framework;
|
2007-10-26 18:24:20 +00:00
|
|
|
using namespace std;
|
|
|
|
using namespace boost;
|
2007-10-23 21:49:18 +00:00
|
|
|
|
|
|
|
int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR params, int showCmd)
|
|
|
|
{
|
2007-10-26 18:24:20 +00:00
|
|
|
try
|
|
|
|
{
|
|
|
|
string path(params);
|
|
|
|
erase_all(path, "\"");
|
|
|
|
CElfViewFrame elfViewFrame(path.c_str());
|
|
|
|
elfViewFrame.Center();
|
|
|
|
elfViewFrame.Show(SW_SHOW);
|
|
|
|
Win32::CWindow::StdMsgLoop(&elfViewFrame);
|
|
|
|
}
|
2011-02-21 05:22:20 +00:00
|
|
|
catch(const std::exception& except)
|
2007-10-26 18:24:20 +00:00
|
|
|
{
|
|
|
|
MessageBoxA(NULL, except.what(), NULL, 16);
|
|
|
|
// MessageBoxA(NULL, params, NULL, 16);
|
|
|
|
}
|
2007-10-23 21:49:18 +00:00
|
|
|
return 0;
|
|
|
|
}
|