toxcore/Tox_GUI/gui/Main.cpp
irungentoo baf14f8121 Merged "wxWidgets VS template for windows" from juryben
That big 40MB file is useless so I merged the repos in a way that it
dissapears forever from the main repo.
2013-06-24 07:26:30 -04:00

33 lines
543 B
C++

#include <wx\wx.h>
#include "home\Home.h"
class Tox : public wxApp
{
public:
virtual bool OnInit();
};
bool Tox::OnInit()
{
Home *home = new Home(wxT("Tox"));
home->Show(true);
return true;
}
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPWSTR lpCmdLine, int nShowCmd)
{
char *buf;
buf = new char[wcslen(lpCmdLine) + 1];
wcstombs(buf, lpCmdLine, wcslen(lpCmdLine) +1);
wxApp::SetInstance( new Tox());
wxEntry(hInstance, prevInstance, buf, nShowCmd);
wxEntryCleanup();
}