Communication between programs?

BlitzMax Forums/BlitzMax Programming/Communication between programs?

Oh sorry, I got so caught up in the forum messing with my code that I clean forgot the second part. Just grab the process ( as I guess you already are ) and send it a message with SendMessage ( also in the WinAPI.)

I believe the correct message to send is WM_COPYDATA.

I can't find anything directly in BMax, but perhaps this page explains it well enough for you.

http://www.codeguru.com/cpp/w-p/system/processesmodules/article.php/c5777/

Worst case, you could always open up a socket and send data that way, but I think WM_COPYDATA is probably the clean, recommended way to do it.