blob: 42feecfa0aaf3f82211e0cad0fd44557d526264b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#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();
}
|