I am a C++ newbie. I am writing a MFC dialog app that does a DnsQuery lookup on a FQDN. I'm just starting out by hardcoding the FQDN and such into the DnsQuery function, but I can't even get that to work. Here's what I have so far.
void CDDNSTestAppDlg::OnBtnQuery()
{
CString sFQDN;
WORD wType;
DWORD dwOptions;
sFQDN = "wType = 1;
dwOptions = DNS_QUERY_STANDARD;
DNS_STATUS WINAPI DnsQuery_A (sFQDN,
wType,
dwOptions,
NULL
);
}
I'm getting compiler errors such as "anachronism used" or "too many initializers"
Can someone help?
--Kevin
void CDDNSTestAppDlg::OnBtnQuery()
{
CString sFQDN;
WORD wType;
DWORD dwOptions;
sFQDN = "wType = 1;
dwOptions = DNS_QUERY_STANDARD;
DNS_STATUS WINAPI DnsQuery_A (sFQDN,
wType,
dwOptions,
NULL
);
}
I'm getting compiler errors such as "anachronism used" or "too many initializers"
Can someone help?
--Kevin