Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ConnectDlg.cpp
Package: meeting_video_system.rar [view]
Upload User: panstart
Upload Date: 2022-04-12
Package Size: 199k
Code Size: 2k
Category:
VOIP program
Development Platform:
C++ Builder
- ////////////////////////////////////////////////////////////////////////////
- //
- //
- // Project : VideoNet version 1.1.
- // Description : Peer to Peer Video Conferencing over the LAN.
- // Author : Nagareshwar Y Talekar ( nsry2002@yahoo.co.in)
- // Date : 15-6-2004.
- //
- //
- // File description :
- // Name : ConnectDlg.cpp
- // Details : Dialog box for connecting to remote host.
- //
- //
- /////////////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "VideoNet.h"
- #include "Connectdlg.h"
- #include "VideoNetDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- ConnectDlg::ConnectDlg(CWnd* pParent /*=NULL*/)
- : CDialog(ConnectDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(ConnectDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void ConnectDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(ConnectDlg)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(ConnectDlg, CDialog)
- //{{AFX_MSG_MAP(ConnectDlg)
- ON_BN_CLICKED(IDC_BUTTON1, OnConnect)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /**
- * Connect to remote host
- * It sends the connect notification to remote host
- *
- */
- void ConnectDlg::OnConnect()
- {
- char hostname[200];
- this->GetDlgItemText(IDC_EDIT1,hostname,200);
- this->OnCancel();
- ((CVideoNetDlg*)mdlg)->dcontrol.SendControlMessage(MESG_CONNECT,hostname);
- }
- /**
- * Set the reference of main dialog
- *
- */
- void ConnectDlg::SetParent(CDialog *dlg)
- {
- mdlg=dlg;
- }
- /**
- * Close the connect dialog box
- *
- */
- void ConnectDlg::OnCancel()
- {
- this->SetDlgItemText(IDC_EDIT1,"");
- CDialog::OnCancel();
- }