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
Printable View
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
Did you run it through the upgrade wizard?
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.
Usually broadcasts are done with UDP. There is an example of how to send a broadcast message in the documentation.
Jeremy
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.
Are you trying to use the old winsock control, or trying to use the .net frame work?
Jeremy
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.