Click here to Skip to main content
15,904,655 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Entering new lines in edit box Pin
David Crow1-Apr-04 3:24
David Crow1-Apr-04 3:24 
GeneralRe: Entering new lines in edit box Pin
basementman1-Apr-04 5:02
basementman1-Apr-04 5:02 
GeneralMemory Device context+Createcompatible Bitmap related query Pin
JHAKAS1-Apr-04 1:59
JHAKAS1-Apr-04 1:59 
GeneralRe: Memory Device context+Createcompatible Bitmap related query Pin
John R. Shaw1-Apr-04 9:36
John R. Shaw1-Apr-04 9:36 
QuestionHow to detect that background under child window is changed? Pin
vgrigor1-Apr-04 0:48
vgrigor1-Apr-04 0:48 
QuestionHow to obtain interface ip from destination ip ? Pin
VF1-Apr-04 0:04
VF1-Apr-04 0:04 
AnswerRe: How to obtain interface ip from destination ip ? Pin
Antony M Kancidrowski1-Apr-04 1:17
Antony M Kancidrowski1-Apr-04 1:17 
AnswerRe: How to obtain interface ip from destination ip ? Pin
Mike Dimmick1-Apr-04 1:49
Mike Dimmick1-Apr-04 1:49 
I think you want GetBestInterface, from the IP Helper API. You can then use GetIpAddrTable to determine the set of IP addresses for that interface.

If you're designing this protocol, though, I recommend that you don't include the IP address in the message. Your protocol won't work across Network Address Translation (for example, from a private to a public network), and it won't work on IPv6 networks. The client should already know which server it's connecting to.

If the server needs to know the IP address of the client, you should pass a sockaddr_in structure to accept (for TCP connections), or use recvfrom for UDP-based protocols. Use sockaddr_in6 for an IPv6 socket.

Stability. What an interesting concept. -- Chris Maunder
Generalset cursor of SDI Pin
MeWithNoName1-Apr-04 0:04
MeWithNoName1-Apr-04 0:04 
GeneralRe: set cursor of SDI Pin
Milton Karimbekallil1-Apr-04 0:39
Milton Karimbekallil1-Apr-04 0:39 
Generalvector math on different pc processors (amd, intel) Pin
Mediate31-Mar-04 23:33
Mediate31-Mar-04 23:33 
GeneralRe: vector math on different pc processors (amd, intel) Pin
Antony M Kancidrowski1-Apr-04 1:31
Antony M Kancidrowski1-Apr-04 1:31 
GeneralRe: vector math on different pc processors (amd, intel) Pin
Alexander M.,1-Apr-04 3:37
Alexander M.,1-Apr-04 3:37 
GeneralRe: vector math on different pc processors (amd, intel) Pin
Mediate1-Apr-04 23:18
Mediate1-Apr-04 23:18 
Generalsubst programatically Pin
bruno leclerc31-Mar-04 22:30
bruno leclerc31-Mar-04 22:30 
GeneralRe: subst programatically Pin
David Crow1-Apr-04 3:27
David Crow1-Apr-04 3:27 
GeneralRe: subst programatically Pin
bruno leclerc1-Apr-04 21:08
bruno leclerc1-Apr-04 21:08 
Generalinternet explorer address bar Pin
Anonymous31-Mar-04 20:47
Anonymous31-Mar-04 20:47 
GeneralRe: internet explorer address bar Pin
22491731-Mar-04 23:12
22491731-Mar-04 23:12 
GeneralRe: internet explorer address bar Pin
Anonymous1-Apr-04 20:27
Anonymous1-Apr-04 20:27 
Generalcontinious monitoring of process Pin
Anonymous31-Mar-04 20:44
Anonymous31-Mar-04 20:44 
GeneralRe: continious monitoring of process Pin
22491731-Mar-04 23:10
22491731-Mar-04 23:10 
GeneralMFC icon Pin
catngo31-Mar-04 20:30
catngo31-Mar-04 20:30 
GeneralRe: MFC icon Pin
iceage31-Mar-04 20:42
iceage31-Mar-04 20:42 
GeneralRe: MFC icon Pin
catngo31-Mar-04 20:47
catngo31-Mar-04 20:47 

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.