.NET Components for Mobility

PC to Pocket PC

Last post 06-25-2009 6:07 AM by alanjmcf. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-17-2009 8:30 AM

    PC to Pocket PC

    gud day guys,

     im was looking for a sample code that will send a file from PC to PocketPC, i was able to find a code right here in the forums but the code was for PocketPC-PC. this is the link http://inthehand.com/forums/t/1115.aspx 

    Can this code be written for PC-PocketPC, where in the code for the PocketPC will be put for the PC same as the PC-PocketPC??

    any comments and suggestion are much appreciated. thanks in advance.

    I don''t know what the future may hold, but I know who holds the future.


    jihmantiquilla
    Filed under:
  • 06-18-2009 5:18 AM In reply to

    Re: PC to Pocket PC

     

    ei guys, ive tried using the code in that link. but there was an error socketexception was unhundled. i need help guys... the error occured in

    ObexListener listener = new ObexListener(ObexTransport.Bluetooth);

    listener.Start();//<---- within here.

     i used WM6 as my server and my client was a window application. i badly need ur help guys.:(

    I don''t know what the future may hold, but I know who holds the future.


    jihmantiquilla
  • 06-22-2009 8:23 AM In reply to

    Re: PC to Pocket PC

    Have you made any progress with this?  What was the ErrorCode property of the SocketException?

    You realise that its not good to run the OBEX server built-in to Windows as that same time as another OBEX server?  See the User's Guide (e.g. at http://www.alanjmcf.me.uk/comms/bluetooth/32feet.NET%20--%20User%20Guide.html)

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 06-23-2009 11:42 PM In reply to

    Re: PC to Pocket PC

    thanks for the reply sir. i was stock up with that line of code. this was my exception.. "socketexceoption was undhandled Unknown error (0x6)" i do read from different forums regarding this one,  some says that it is the compact framework 1 who is the one responsible for the obex listener. but unfortunately i'm using windows mobile 6. and cf 1 are for pocket pc 2000+ versions only. so i'm still looking on different ways on how will i use obexlistener on my windows mobile 6. :(:(

    I don''t know what the future may hold, but I know who holds the future.


    jihmantiquilla
  • 06-24-2009 5:17 AM In reply to

    Re: PC to Pocket PC

     

    sir, i also tried using the code in the 32feet.codeplex.com which is the device listener. i tried to put those code into my windows mobile app. but still these socket exception still exist. any ideas on how to fix these one??? any comments and suggestion are much appreciated.
    I don''t know what the future may hold, but I know who holds the future.


    jihmantiquilla
  • 06-25-2009 6:07 AM In reply to

    Re: PC to Pocket PC

    "What was the ErrorCode property of the SocketException?" i.e. http://msdn.microsoft.com/en-us/library/system.net.sockets.socketexception.errorcode.aspx

    So, if you are running in the debugger, inspect the exception and look at its ErrorCode property.  Or is you are catching the exception then print out that property e.g.

        ...
        ...
       } catch (SocketException ex) {
          Console.WriteLine("ErrorCode: {0}", ex.ErrorCode);
       }

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
    Filed under:
Page 1 of 1 (6 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.