Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HIMETRIC_INCH undeclared??! wth? Pin
Alexander M.,26-Nov-04 5:13
Alexander M.,26-Nov-04 5:13 
GeneralRe: HIMETRIC_INCH undeclared??! wth? Pin
Kuniva26-Nov-04 5:20
Kuniva26-Nov-04 5:20 
AnswerRe: HIMETRIC_INCH undeclared??! wth? Pin
Jack Puppy26-Nov-04 7:18
Jack Puppy26-Nov-04 7:18 
AnswerRe: HIMETRIC_INCH undeclared??! wth? Pin
John R. Shaw26-Nov-04 7:37
John R. Shaw26-Nov-04 7:37 
GeneralRe: HIMETRIC_INCH undeclared??! wth? Pin
Kuniva26-Nov-04 7:43
Kuniva26-Nov-04 7:43 
GeneralRe: HIMETRIC_INCH undeclared??! wth? Pin
John R. Shaw26-Nov-04 8:28
John R. Shaw26-Nov-04 8:28 
GeneralRe: HIMETRIC_INCH undeclared??! wth? Pin
Kuniva26-Nov-04 10:08
Kuniva26-Nov-04 10:08 
GeneralMX-record lookup using 'windns.h' Pin
qwertasdfg26-Nov-04 4:52
qwertasdfg26-Nov-04 4:52 
Hi,
i'm writing an email client with visual studio .net,
including 'windns.h' to perform dns query.
Passing DNS_TYPE_A value to DnsQuery_A function, program seem to work well, but using DNS_TYPE_MX, application do not work ;(.
I report below the code of my routine, hoping that
somebody can help me:


WSADATA wsaData2;
WSAStartup(MAKEWORD(2, 0), &wsaData2);


char *DestDomain="domain.com";

_DnsRecord *pResult = 0;
DNS_STATUS status = DnsQuery(DestDomain, DNS_TYPE_MX, DNS_QUERY_STANDARD, 0, &pResult, 0);

if (status == NO_ERROR) {
char DestHost[128];
lstrcpy(DestHost, pResult[0].Data.MX.pNameExchange);
MessageBox(NULL,DestHost,"Record MX:",16);
}



thx in advice,
Luca
GeneralC++ source code (stacks and Queues) Pin
fckyy26-Nov-04 4:14
fckyy26-Nov-04 4:14 
GeneralRe: C++ source code (stacks and Queues) Pin
Alexander M.,26-Nov-04 5:16
Alexander M.,26-Nov-04 5:16 
GeneralRe: C++ source code (stacks and Queues) Pin
Maximilien26-Nov-04 5:20
Maximilien26-Nov-04 5:20 
GeneralC++, An image resize plug in for internet explorer Pin
tkarven26-Nov-04 3:56
tkarven26-Nov-04 3:56 
GeneralActiveX and windows messages Pin
madretierra26-Nov-04 3:28
madretierra26-Nov-04 3:28 
GeneralSending Ctrl Alt Delete to a Remote Computer Pin
Jnewg526-Nov-04 3:15
Jnewg526-Nov-04 3:15 
GeneralClass Wizard Pin
shiraztk26-Nov-04 3:04
shiraztk26-Nov-04 3:04 
GeneralInteger Input Problem Pin
BRIMID26-Nov-04 2:29
BRIMID26-Nov-04 2:29 
QuestionHow to Resize Web Browser Control when the parent dialog is maximized Pin
sharthee26-Nov-04 1:41
sharthee26-Nov-04 1:41 
AnswerRe: How to Resize Web Browser Control when the parent dialog is maximized Pin
Maximilien26-Nov-04 2:27
Maximilien26-Nov-04 2:27 
GeneralRe: How to Resize Web Browser Control when the parent dialog is maximized Pin
sharthee28-Nov-04 20:22
sharthee28-Nov-04 20:22 
GeneralGaussian Noise generation Pin
goliath0126-Nov-04 1:09
goliath0126-Nov-04 1:09 
GeneralTAB not working properly in WebBrowser control embeded in modeless dialog box encapsulated within an ATL DLL Pin
sashishk26-Nov-04 1:05
sashishk26-Nov-04 1:05 
Generalfail to envoke shutdown socket function. Pin
amitranjanmishra26-Nov-04 1:01
amitranjanmishra26-Nov-04 1:01 
GeneralRe: fail to envoke shutdown socket function. Pin
John R. Shaw26-Nov-04 8:14
John R. Shaw26-Nov-04 8:14 
GeneralRe: fail to envoke shutdown socket function. Pin
amitranjanmishra26-Nov-04 19:39
amitranjanmishra26-Nov-04 19:39 
GeneralRe: fail to envoke shutdown socket function. Pin
John R. Shaw27-Nov-04 5:26
John R. Shaw27-Nov-04 5:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.