문제

방금“xihsolutions.dotmsn.dll”버전을 사용하여 앱을 구축하기 시작했습니다 : 2.0.0.40909,

내 문제는 그것이 "Nameserver_SignedIn"이벤트를 발사하지 않는다는 것입니다. 내가 뭔가 잘못하고 있는지 확실하지 않습니다. 당신의 도움은 정말 도움이 될 것입니다.

void nameserver_signedin (Object Sender, Eventargs e) {Throw New Exception ( "사용자 로그인"); }

    private string message = string.Empty;
    void NameserverProcessor_ConnectionEstablished(object sender, EventArgs e)
    {

        message = "Connected";
        SetMessage();

    }

    void SetMessage()
    {
        if (tbMessage.InvokeRequired)
           tbMessage. Invoke(new ThreadStart(SetMessage));
        else
        tbMessage.Text += Environment.NewLine+ message; 
    }

    private void btnSingIn_Click(object sender, EventArgs e)
    {
        if (messenger.Connected)
        {
           // SetStatus("Disconnecting from server");
            messenger.Disconnect();
        }

        // set the credentials, this is ofcourse something every DotMSN program will need to
        // implement.
        messenger.Credentials.Account = tbUserName.Text;
        messenger.Credentials.Password = tbPwd.Text;

        // inform the user what is happening and try to connecto to the messenger network.                
        //SetStatus("Connecting to server");
        messenger.Connect();

    }
도움이 되었습니까?

해결책

대신 MSNPSHARP를 사용할 수 있습니다. DOTMSN은 이전이며 현재 MSN 프로토콜을 지원하지 않을 수 있습니다. 여기에 링크가 있습니다.

http://code.google.com/p/msnp-sharp/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top