[ create a new paste ] login | about

Link: http://codepad.org/sLqb3n50    [ raw code | fork ]

hurracane - C, pasted on Jul 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 'Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit() {
#ifdef __WXMAC__
	ProcessSerialNumber PSN;
	GetCurrentProcess(&PSN);
	TransformProcessType(&PSN,kProcessTransformToForegroundApplication);
#endif
	wxXmlResource::Get()->InitAllHandlers();
	wxXmlResource::Get()->Load(_T("gui.xrc"));

	Collection* library = new Collection;
	MovieDB* database = new MovieDB("db.txt");
	database->loadDB(*library);
	MainWindow* frame = new MainWindow(wxString(_T("XML resources demo")), wxPoint(50, 50), wxSize(800, 600), library, database);
	fillGrid(*frame->grid_, *library);
	frame->Show(true);
	return true;
}


Create a new paste based on this one


Comments: