int main(int ac, char** av) { if ( ac < 3 ) { qDebug() << "Usage:" << av[0] << "[file_to_load.xml] [file_to_save.xml]"; return -1; } QApplication a(ac, av); MainFrame m; m.load(av[1]); m.save(av[2]); return a.exec(); }
com_wise_sys_XWindowPeer_p com_wise_sys_AirWise_C$::createXWindowPeer( com_wise_wizdom_XWindow_p pXWindow0 ) { com_wise_sys_Win32Peer_p peer = FASTIVA_NEW(com_wise_sys_Win32Peer)(); MidpCanvas* pOzCanvas = (MidpCanvas*)pXWindow0->getCanvasPeer()->getAdapter(); MainFrame* pFrame = new MainFrame(); pFrame->load(101, NULL); //HWND hFrame = OzWnd::createOzWnd(0, 0, 480, 640, NULL, 0, WS_OVERLAPPEDWINDOW); //pFrame->onCreate(hFrame); HWND hFrame = *pFrame; pOzCanvas->setParent(hFrame); pFrame->m_hClient = *pOzCanvas; pFrame->m_pXWindow = pXWindow0;// fastiva_createUnicodeString(text); peer->m_handle = (jint)pFrame; ::ShowWindow(hFrame, SW_SHOW); fastiva_lockGlobalRef(peer); return peer;//com_wise_sys_XWindowPeer::ptr_cast$(peer); }