Results 1 to 7 of 7

Thread: WOL for .Net

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Adelaide - Australia
    Posts
    150

    WOL for .Net

    I'm having trouble trying to get my WOL code converted from VB6 to .Net. Does anyone have some WOL code they could post? Would be most apprieciated.

    Thanks

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Did you run it through the upgrade wizard?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Adelaide - Australia
    Posts
    150
    no i haven't run it through the upgrade wizard, i dont have that. I'm having trouble trying to get it to send through the sockets. I know how to use the Sockets for normal TCP communication, just having a little trouble when trying to broadcast the message.

  4. #4
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207
    Usually broadcasts are done with UDP. There is an example of how to send a broadcast message in the documentation.

    Jeremy

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Adelaide - Australia
    Posts
    150
    Ok, i think i have that under control. I think i do.

    Now another thing i am having trouble with is making the magic packet. i think the way .net handles Byte arrays seems to be different from VB6.

    There are so many areas in which my code could be going wrong. If anyone has some working code for this i would greatly appreciate it. Might save me a quite a few hours of torture.

  6. #6
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207
    Are you trying to use the old winsock control, or trying to use the .net frame work?

    Jeremy

  7. #7
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    If you post your old project, I will run it through the upgrade wizard for you if you want. It probably won't cure everything, but might give you a good start towards converting the code.

Posting Permissions

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



Click Here to Expand Forum to Full Width