Hello Funnyman,
>Basically the app has the main window thread (Application::Run) and
>then a listener thread for events coming in from other applications,
>and those events need to manipulate the data being shown in the main
>window.
There's no really good answer to your question, because you're going wrong
here. You shouldn't be manipulating data that is encapsulated in the main
from class from outside that class. A basic OO paradigm. If you need have
that data changed based on an event, then you should catch that event
inside the class. If that is totally impossible (and I have to admit I'm
not entirely sure why it would be), you should introduce a public
interface to the class that holds the data and call those public methods
to have the necessary modifications made.
> Form1::thisForm->Function();
Use C#, man - that looks just funny in 2007 :-) Interesting, I never
noticed back in 1996... just joking, in a way...
Oliver Sturm

Signature
http://www.sturmnet.org/blog