Stupid question, I'm sure. But, I have a single dialog box with an edit box control. When user clicks on a query button, I want to grab that text string and use it in a DNSQuery function. But regardless of what I try, I can't seem to grab the value stored in m_USERID. I have even tried dlg.m_USERID and still nada. I've confirmed the function works fine by hardcoding a FQDN value into it. Here's the code.
void CDDNSTestAppDlg::OnBtnQuery()
{
DNS_STATUS dns_Status;
PDNS_RECORD pDNS_Record;
CString FQDN = m_USERID;
dns_Status = DnsQuery_A (
FQDN,
1,
DNS_QUERY_STANDARD,
NULL,
&pDNS_Record,
NULL
);
}
Any help would be appreciated.
Thanks,
Kevin
void CDDNSTestAppDlg::OnBtnQuery()
{
DNS_STATUS dns_Status;
PDNS_RECORD pDNS_Record;
CString FQDN = m_USERID;
dns_Status = DnsQuery_A (
FQDN,
1,
DNS_QUERY_STANDARD,
NULL,
&pDNS_Record,
NULL
);
}
Any help would be appreciated.
Thanks,
Kevin