void VNCviewerApp32::NewConnection() { ClientConnection *pcc = new ClientConnection(this); try { pcc->Run(); } catch (Exception &e) { // DestroyWindow(pcc->m_hwndMain); pcc->CloseWindows(); e.Report(); delete pcc; } }
void VNCviewerApp32::NewConnection(bool Is_Listening,TCHAR *host, int port) { ClientConnection *pcc = new ClientConnection(this, host,port); try { pcc->m_Is_Listening=Is_Listening; pcc->Run(); } catch (Exception &e) { // DestroyWindow(pcc->m_hwndMain); pcc->CloseWindows(); e.Report(); delete pcc; } }
void VNCviewerApp32::NewConnection(bool Is_Listening) { ClientConnection *pcc = new ClientConnection(this); try { memcpy((char*)&pcc->m_opts,(char*)&m_options,sizeof(m_options)); pcc->m_Is_Listening=Is_Listening; pcc->Run(); } catch (Exception &e) { // DestroyWindow(pcc->m_hwndMain); pcc->CloseWindows(); e.Report(); delete pcc; } }