newntui/activex/msdevintegrator/src/msdevintegratorctl.cpp
//----------------------------------------------------------------------------------------
// We will query nameserver service when creating the integrator ActiveX for the 
// integrator. If OK, we will open a socket "m_IntegratorServerConnection" which will
// inform us about Ctrl+Click event in the DeveloperStudio. (By sendisg ' ').
//----------------------------------------------------------------------------------------
We will query nameserver service when creating the integrator ActiveX for the
integrator. If OK, we will open a socket "m_IntegratorServerConnection" which will
inform us about Ctrl+Click event in the DeveloperStudio.
We will query nameserver service when creating the integrator ActiveX for the integrator . If OK we will open a socket " m_IntegratorServerConnection " which will inform us about Ctrl + Click event in the DeveloperStudio .
int CMSDEVIntegratorCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)  {
	if (COleControl::OnCreate(lpCreateStruct) == -1)
		return -1;
	switch(ReceveIntegrationService()) {
	    case  -1 : AfxMessageBox("Can't connect to the DIScover Name Server"); return 0;
	    case  0  : AfxMessageBox("Can't connect to the DIScover Visual Studio Integrator"); return 0;
	}
	AfxSocketInit();
    m_IntegratorServerConnection.SetParent(this);
    m_IntegratorServerConnection.Create();
    int res = m_IntegratorServerConnection.Connect((SOCKADDR *)&m_WhereIntegrator,sizeof(m_WhereIntegrator));
	res=CSocket::GetLastError();
	return 0;
}
int CMSDEVIntegratorCtrl :: OnCreate ( LPCREATESTRUCT lpCreateStruct ) { if ( COleControl :: OnCreate ( lpCreateStruct ) == -1 ) return -1 ; switch ( ReceveIntegrationService ( ) ) { case -1 : AfxMessageBox ( " " ) ; return 0 ; case 0 : AfxMessageBox ( " " ) ; return 0 ; } AfxSocketInit ( ) ; m_IntegratorServerConnection . SetParent ( this ) ; m_IntegratorServerConnection . Create ( ) ; int res = m_IntegratorServerConnection . Connect ( ( SOCKADDR * ) & m_WhereIntegrator , sizeof ( m_WhereIntegrator ) ) ; res = CSocket :: GetLastError ( ) ; return 0 ; }
We will query nameserver service when creating the integrator ActiveX for the
integrator.
We will query nameserver service when creating the integrator ActiveX for the integrator .
// Opening integration socket