Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get my IP address in Win32 [modified] Pin
Hanan88824-Apr-08 5:13
Hanan88824-Apr-08 5:13 
AnswerRe: How to get my IP address in Win32 Pin
Maximilien24-Apr-08 5:22
Maximilien24-Apr-08 5:22 
GeneralRe: How to get my IP address in Win32 Pin
Hanan88824-Apr-08 5:27
Hanan88824-Apr-08 5:27 
AnswerRe: How to get my IP address in Win32 Pin
CPallini24-Apr-08 5:51
mveCPallini24-Apr-08 5:51 
GeneralRe: How to get my IP address in Win32 Pin
Hanan88824-Apr-08 5:54
Hanan88824-Apr-08 5:54 
QuestionRe: How to get my IP address in Win32 Pin
CPallini24-Apr-08 5:57
mveCPallini24-Apr-08 5:57 
GeneralRe: How to get my IP address in Win32 Pin
Hanan88824-Apr-08 6:04
Hanan88824-Apr-08 6:04 
AnswerRe: How to get my IP address in Win32 Pin
David Crow24-Apr-08 6:05
David Crow24-Apr-08 6:05 
One way would be:

gethostname();
struct hostent *host = gethostbyname();
struct in_addr *ptr = (struct in_addr *) host->h_addr_list[0]
int octet = ptr->S_un.S_un_b.s_b4;


"Love people and use things, not love things and use people." - Unknown

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: How to get my IP address in Win32 Pin
Hanan88824-Apr-08 6:25
Hanan88824-Apr-08 6:25 
GeneralIE tabbing "bug" Pin
Jim Crafton24-Apr-08 5:03
Jim Crafton24-Apr-08 5:03 
GeneralRe: IE tabbing "bug" - SOLVED Pin
Jim Crafton24-Apr-08 6:40
Jim Crafton24-Apr-08 6:40 
Generalfast deserialization from a buffer to a std::Vector Pin
manustone24-Apr-08 3:30
manustone24-Apr-08 3:30 
QuestionHow to create a window using MFC in which we can be able to control each and every viewport independently. Pin
Venkata Rama Krishna K24-Apr-08 3:18
Venkata Rama Krishna K24-Apr-08 3:18 
AnswerRe: How to create a window using MFC in which we can be able to control each and every viewport independently. Pin
Mark Salsbery24-Apr-08 6:16
Mark Salsbery24-Apr-08 6:16 
QuestionHow to get appear times between 2 and 5 in a vector? Pin
hanlei000000000924-Apr-08 1:31
hanlei000000000924-Apr-08 1:31 
AnswerRe: How to get appear times between 2 and 5 in a vector? Pin
Saurabh.Garg24-Apr-08 2:11
Saurabh.Garg24-Apr-08 2:11 
AnswerRe: How to get appear times between 2 and 5 in a vector? Pin
vijay_aroli24-Apr-08 2:33
vijay_aroli24-Apr-08 2:33 
AnswerRe: How to get appear times between 2 and 5 in a vector? [modified] Pin
BadKarma24-Apr-08 2:54
BadKarma24-Apr-08 2:54 
GeneralRe: How to get appear times between 2 and 5 in a vector? Pin
Saurabh.Garg24-Apr-08 4:10
Saurabh.Garg24-Apr-08 4:10 
JokeRe: How to get appear times between 2 and 5 in a vector? Pin
BadKarma24-Apr-08 4:21
BadKarma24-Apr-08 4:21 
GeneralRe: How to get appear times between 2 and 5 in a vector? Pin
hanlei000000000926-Apr-08 21:22
hanlei000000000926-Apr-08 21:22 
GeneralReagarding MFC and ASP communication Pin
H4u3224-Apr-08 1:30
H4u3224-Apr-08 1:30 
QuestionSignificance of THIS_FILE[]=__FILE__ ? Pin
SherTeks24-Apr-08 0:59
SherTeks24-Apr-08 0:59 
GeneralRe: Significance of THIS_FILE[]=__FILE__ ? Pin
Cedric Moonen24-Apr-08 1:01
Cedric Moonen24-Apr-08 1:01 
GeneralRe: Significance of THIS_FILE[]=__FILE__ ? Pin
SherTeks24-Apr-08 1:12
SherTeks24-Apr-08 1:12 

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.