I thought I would share this, because being a long time vb/vb.net programmer type of person I wanted to be able to send control data from vb.net to Pd easily.
There are various OSC libraries around, but little for Vb and nothing simple.
I was inspired by a post about pdsend i responded to the other day.
I thought surely there's a way to send data directly from vb to pd without using a batch file or cmd redirection.
I found a nifty piece of code from Kumudu Gunasekara, 27 Nov 2004 on www.codeproject.com/Articles/8877/UDP-Send-and-Receive-using-threads-in-VB-NET and modified it slightly for this execise, this allowed me to send data via a port and ip address (9001 & 127.0.0.1 (aka localhost)). At the Pd end I used mrpeach/udpreceive, but the data was ascii char values. I cant believe there isn't a conversion somewhere in Pd but I couldn't find it and made ascii.pd and cnv999.pd to resolve the problem.
There's little error checking, so I've no idea how it might interfere with other udp processes. But this is the start of a solution for me.
vb.net to Pd via UDP.zip
A Very Simple way to use vb.net to control Pd via mrpeach/udpreceive
I've just found that [makefilename %c] converts character codes into ascii characters, so I wasted my time making ascii.pd