Play-/tools/ElfView/Source/WinMain.cpp
Mahmood - Zer0xFF c564bb4bbb Update StringUtils
(cherry picked from commit eb0dfe865e78d951c164ceac948f51cc8f003c02)
2019-07-23 21:05:59 -04:00

14 lines
412 B
C++

#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);
return 0;
}