Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pause in between Pin
kakan22-Jan-06 19:19
professionalkakan22-Jan-06 19:19 
QuestionOS Pin
Tuotrut22-Jan-06 18:46
Tuotrut22-Jan-06 18:46 
AnswerRe: OS Pin
waxie22-Jan-06 18:53
waxie22-Jan-06 18:53 
AnswerRe: OS Pin
Sebastian Schneider22-Jan-06 20:51
Sebastian Schneider22-Jan-06 20:51 
AnswerRe: OS Pin
Toby Opferman23-Jan-06 9:00
Toby Opferman23-Jan-06 9:00 
QuestionGet IP address of computer (MFC/VC++) Pin
waxie22-Jan-06 18:10
waxie22-Jan-06 18:10 
AnswerRe: Get IP address of computer (MFC/VC++) Pin
JonEngle22-Jan-06 19:36
JonEngle22-Jan-06 19:36 
AnswerRe: Get IP address of computer (MFC/VC++) Pin
eli1502197922-Jan-06 21:18
eli1502197922-Jan-06 21:18 
Hi,
IS this what yoo are looking for?

struct hostent *Host;
SIZE_T t=100;
CString szIP , szName;
char *host_name = new char[100];

gethostname(host_name,t);
Host = gethostbyname(host_name);
szName = host_name;
szIP = inet_ntoa(*((struct in_addr*)Host->h_addr));
delete []host_name;


Regards,
Eli
Questionhow to get all computer name in a network fastly. Pin
baldha rakesh22-Jan-06 17:53
baldha rakesh22-Jan-06 17:53 
Questionenable and disable the dialog controls Pin
Anu_Bala22-Jan-06 17:52
Anu_Bala22-Jan-06 17:52 
AnswerRe: enable and disable the dialog controls Pin
Owner drawn22-Jan-06 18:17
Owner drawn22-Jan-06 18:17 
AnswerRe: enable and disable the dialog controls Pin
David Crow23-Jan-06 4:17
David Crow23-Jan-06 4:17 
AnswerRe: enable and disable the dialog controls Pin
domehead23-Jan-06 7:03
domehead23-Jan-06 7:03 
QuestionKeyBoard Handling Pin
rajeevktripathi22-Jan-06 17:51
rajeevktripathi22-Jan-06 17:51 
AnswerRe: KeyBoard Handling Pin
Rajesh R Subramanian22-Jan-06 21:19
professionalRajesh R Subramanian22-Jan-06 21:19 
QuestionRe: KeyBoard Handling Pin
rajeevktripathi23-Jan-06 1:11
rajeevktripathi23-Jan-06 1:11 
AnswerRe: KeyBoard Handling Pin
Rage23-Jan-06 1:59
professionalRage23-Jan-06 1:59 
QuestionRe: KeyBoard Handling Pin
rajeevktripathi23-Jan-06 2:12
rajeevktripathi23-Jan-06 2:12 
AnswerRe: KeyBoard Handling Pin
Rajesh R Subramanian23-Jan-06 18:24
professionalRajesh R Subramanian23-Jan-06 18:24 
QuestionHow to use regular dll? Pin
rushing22-Jan-06 17:05
rushing22-Jan-06 17:05 
AnswerRe: How to use regular dll? Pin
Ryan Binns22-Jan-06 17:14
Ryan Binns22-Jan-06 17:14 
Questionwin98 usb Pin
act_x22-Jan-06 16:45
act_x22-Jan-06 16:45 
QuestionCleaning up the registry Pin
Shraddhan22-Jan-06 16:38
Shraddhan22-Jan-06 16:38 
QuestionMenu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens22-Jan-06 16:36
Warren Stevens22-Jan-06 16:36 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Ryan Binns22-Jan-06 17:15
Ryan Binns22-Jan-06 17:15 

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.