- wxRegKey(wxRegKey::HKCR, strKey + _T("\\Application")).
- QueryValue(wxEmptyString, ddeServer);
- wxRegKey(wxRegKey::HKCR, strKey + _T("\\Topic")).
- QueryValue(wxEmptyString, ddeTopic);
+ wxRegKey keyServer(wxRegKey::HKCR, strKey + _T("\\Application"));
+ keyServer.QueryValue(wxEmptyString, ddeServer);
+ wxRegKey keyTopic(wxRegKey::HKCR, strKey + _T("\\Topic"));
+ keyTopic.QueryValue(wxEmptyString, ddeTopic);