Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Toggle Button Pin
Cedric Moonen5-May-06 4:46
Cedric Moonen5-May-06 4:46 
GeneralRe: Toggle Button Pin
atimpoo5-May-06 5:01
atimpoo5-May-06 5:01 
GeneralRe: Toggle Button Pin
Cedric Moonen5-May-06 8:24
Cedric Moonen5-May-06 8:24 
GeneralRe: Toggle Button Pin
atimpoo5-May-06 19:04
atimpoo5-May-06 19:04 
GeneralRe: Toggle Button Pin
Laxman Auti5-May-06 20:45
Laxman Auti5-May-06 20:45 
QuestionHow to get DNS entry for local host (VC++6)? Pin
khb5-May-06 2:16
khb5-May-06 2:16 
QuestionRe: How to get DNS entry for local host (VC++6)? Pin
David Crow5-May-06 2:28
David Crow5-May-06 2:28 
QuestionRe: How to get DNS entry for local host (VC++6)? Pin
khb5-May-06 5:40
khb5-May-06 5:40 
Hi David,

thank you very much for the tip. I tried out the function in the last three hours. However, it doesn't work as expected. I tried
DnsQueryConfig(DnsConfigHostName_A, FALSE, NULL, NULL, szHostName, &ulSize);
and this gives me the local(!) host name OMG | :OMG: So, the result is equal to gethostname(). Then I tried
DnsQueryConfig(DnsConfigFullHostName_A, FALSE, NULL, NULL, szHostName, &ulSize);
and it works only on those machines where the local host name (WINS entry) is equal to the DNS entry. So, I suppose that DnsQueryConfig() queries information by giving the local host name to DNS WTF | :WTF: Of course this won't work. Moreover, the function doesn't work for Win2000 although it is specified for it (I always get a "wrong parameter" error).

Maybe you can tell me what I'm doing wrong? Or do you have another idea?

Thank you again for your help,
Marcus.
QuestionGet windows login name using VC++/VC Pin
noumanzaidi5-May-06 1:56
noumanzaidi5-May-06 1:56 
AnswerRe: Get windows login name using VC++/VC Pin
Nibu babu thomas5-May-06 2:01
Nibu babu thomas5-May-06 2:01 
QuestionInter-process communication problem Pin
RickyC5-May-06 1:46
RickyC5-May-06 1:46 
AnswerRe: Inter-process communication problem Pin
led mike5-May-06 5:11
led mike5-May-06 5:11 
GeneralRe: Inter-process communication problem Pin
RickyC5-May-06 7:33
RickyC5-May-06 7:33 
GeneralRe: Inter-process communication problem Pin
led mike5-May-06 8:01
led mike5-May-06 8:01 
Questionapplication is exiting on pressing enter Pin
helpcode5-May-06 1:43
helpcode5-May-06 1:43 
AnswerRe: application is exiting on pressing enter Pin
Cedric Moonen5-May-06 1:45
Cedric Moonen5-May-06 1:45 
AnswerRe: application is exiting on pressing enter Pin
Laxman Auti5-May-06 3:46
Laxman Auti5-May-06 3:46 
GeneralRe: application is exiting on pressing enter Pin
helpcode7-May-06 18:05
helpcode7-May-06 18:05 
QuestionAll about C++ Pin
Sarvan AL5-May-06 1:28
Sarvan AL5-May-06 1:28 
AnswerRe: All about C++ Pin
toxcct5-May-06 1:34
toxcct5-May-06 1:34 
GeneralRe: All about C++ Pin
Sarvan AL5-May-06 1:55
Sarvan AL5-May-06 1:55 
GeneralRe: All about C++ Pin
toxcct5-May-06 2:02
toxcct5-May-06 2:02 
GeneralRe: All about C++ Pin
Sarvan AL5-May-06 2:06
Sarvan AL5-May-06 2:06 
GeneralRe: All about C++ Pin
toxcct5-May-06 2:07
toxcct5-May-06 2:07 
GeneralRe: All about C++ Pin
David Crow5-May-06 2:39
David Crow5-May-06 2:39 

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.