Play-/tools/ElfView/Source/WinMain.cpp

15 lines
412 B
C++
Raw Permalink Normal View History

#include <windows.h>
#include "ElfViewFrame.h"
#include "StringUtils.h"
int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR params, int showCmd)
{
std::string path(params);
path = StringUtils::EraseAll(path, "\"");
CElfViewFrame elfViewFrame(path.c_str());
elfViewFrame.Center();
elfViewFrame.Show(SW_SHOW);
Framework::Win32::CWindow::DlgMsgLoop(elfViewFrame);
2018-04-30 21:01:23 +01:00
return 0;
}