I create an MFC application in .net

which create the appclass, and the dlg class
i then create a generic thread class so i can spawn thread easily.
in the dlg class, i have the thread create and start there. I cant seem to figure a way to have the worker thread access data (dlg value stuff or variable i create in the dlg class)

is it possible to pass a pointer to the worker thread and cast it to become a pointer for the dlg class?

sample please