Hey here is a MUCH, MUCH simpler solution for what your trying to do!!
in Screen designer, put this VB code: "NotifyPlugins( x)" where x is some integer, (by the way, I suggest higher range than 10,000).
then in the plugin, in the MyNotify section, capture that ID number that you sent via the screen button.
then do what ever that number represents in your C++ code.
at this link:
http://www.machsupport.com/forum/index.php/topic,11543.0.htmlThis is a "Message Capture" plugin I did, that will display your Notify messages, so you can see what your passing for debugging your plug.
It is doubtfull you have to worry about the "average" user having "screen designer", and then going into your buttons to mess up your code in that button.
the code there would not mean anything to a user any way, i.e. if they saw: NotifyPlugins(15678)
I doubt SERIOUSLY that it would mean much to them.......
BTW: there IS a major bug that have remained unresolved in the Mach3 COM stuff......... you have been warned......
scott