×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    252

    general error -2 whene i try to connect

    Hi,
    I have a problem when i try to connect with a dns.
    I use this:
    Code:
    					        TNameEntry  p;
    					        User::LeaveIfError(hr.GetByName( KRasAddr ,p ));
    					        destAddr = p().iAddr;
    					        
    					        TInetAddr :: Cast(destAddr).Output(KRasAddr);
    it get me correct ip, but connection get me error -2.

    If i use ip address without dns connection is ok.

    What is problem??
    thanks

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    252

    Re: general error -2 whene i try to connect

    I found my error, I added this

    destAddr.SetAddress(TInetAddr::Cast(p().iAddr).Address());

    and work
    bye

Similar Threads

  1. Can't access series 40 General number via JSR75
    By mottsc in forum Mobile Java General
    Replies: 16
    Last Post: 2009-02-27, 11:28
  2. Bluetooth connect without userconfirmation.
    By AdrianDK in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-10-30, 10:24
  3. Unable to connect n70 to pc
    By chower in forum PC Suite API and PC Connectivity SDK
    Replies: 6
    Last Post: 2006-05-13, 20:19
  4. Help Required to connect to Phones without using Nokia Phone Suit
    By sumit_vij11 in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-03-23, 21:25
  5. A series 40 connectivity problem : unable to connect using SocketConnection
    By dakots in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-03-08, 05:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×