Re: engineering a global type a variable...



You could either write to a common parent member variable, or send a message to the other dialog, or a combination of both. If you were using views I'd suggest writing to the document and calling UpdateAllViews(), but with dialogs it's more trouble. How do you have more than one modal dialog open at a time?

Tom

"RAB" <rabmissouri@xxxxxxxxx> wrote in message news:3ed5b839-6f07-4740-a426-b4bb87bf51bd@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have an application in which I have an administrator dialog. With
the administrator dialog (dialog B). I want to set a variable in
another dialog (dialog C). However, (dialog C) does not open (ie
DoModal() ) from (Dialog B), but rather from another dialog class
(Dialog A) How can I get (dialog B) to change a variable in (dialog
C)? Would I use a Global variable? or perhaps write the variable to
the registry? Or is there an other better way?

Thanks in advance,
RABMissouri

.