Hi,
an MFC question. Within my CMainFrame class I want to access my App class methods. I've tried the following code:
CPOSAnywhereClientNTApp *app = dynamic_cast<CPOSAnywhereClientNTApp*>:AfxGetApp());
IPAddress commandLineIPAddress = app->getTargetIPAddress();
if (!commandLineIPAddress.isNull())
{
// do something
}
I should get back a value from getTargetIPAddress() but I'm not. Does the code above make sense? Is the <CPOSAnywhereClientNTApp> legal? Any help would be much appreciated. Thanks.
an MFC question. Within my CMainFrame class I want to access my App class methods. I've tried the following code:
CPOSAnywhereClientNTApp *app = dynamic_cast<CPOSAnywhereClientNTApp*>:AfxGetApp());
IPAddress commandLineIPAddress = app->getTargetIPAddress();
if (!commandLineIPAddress.isNull())
{
// do something
}
I should get back a value from getTargetIPAddress() but I'm not. Does the code above make sense? Is the <CPOSAnywhereClientNTApp> legal? Any help would be much appreciated. Thanks.