Announcement

Collapse
No announcement yet.

Account discabled

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Account discabled

    Hello, techsupport!

    I use desktop api and this error occured when my program was initializing. What means this error? How to fix ?

    Thank you

  • #2
    Code:
     void dump_com_error(_com_error &e) 
    {    CString msg;    
    msg = "Error initializing!\n\n";    
     CString tmp;   
     tmp.Format("%s", (PCSTR)e.ErrorMessage());     
    msg += tmp + "\n";     
    AfxMessageBox(msg, MB_OK, 0);  
    }    
    CSampleDlg::CSampleDlg(CWnd* pParent /*=NULL*/) 	: CDialog(CSampleDlg::IDD, pParent) 
    { 	
    m_hIcon =AfxGetApp()->LoadIcon(IDR_MAINFRAME);  	
    m_dwCookie = 0; 	
    m_piHooks = NULL;
     	//m_pEvents = NULL;  
    	::CoInitialize(NULL);    
      try      
    { 		
    m_piHooks			= new IHooksPtr		("IESignal.Hooks.1");  
    		
    m_pEvents = new EventSink(this); 	
    	LPUNKNOWN ****=m_pEvents->GetIDispatch(FALSE);  		
    /*establish the connection*/ 
    		if(!AfxConnectionAdvise(*m_piHooks,__uuidof(_IHooksEvents),****,FALSE,&m_dwCookie))  		
    { 			
    MessageBox("events"); 
    			// something bad happened 	
    	
    }     
    }     
     catch (_com_error &e)      
    {       
     dump_com_error(e);     
    }
    exception caught.

    dump_com_error() - give this message. ("Account discable")
    Account is not disable - it works on another physical machine.
    Last edited by m.ten; 11-10-2010, 08:14 AM.

    Comment


    • #3
      fixed.

      Comment

      Working...
      X