Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Pin
Dave Bryant28-Sep-03 10:40
Dave Bryant28-Sep-03 10:40 
GeneralRe: CString Pin
l a u r e n28-Sep-03 14:03
l a u r e n28-Sep-03 14:03 
GeneralProjects?! Pin
Alex Chitea28-Sep-03 10:18
Alex Chitea28-Sep-03 10:18 
GeneralRe: Projects?! Pin
keegan28-Sep-03 16:59
keegan28-Sep-03 16:59 
GeneralThread return value... Pin
Orkun GEDiK28-Sep-03 9:41
Orkun GEDiK28-Sep-03 9:41 
GeneralRe: Thread return value... Pin
thes3cr3t129-Sep-03 11:53
thes3cr3t129-Sep-03 11:53 
GeneralWindows XP Styles Pin
Gagnon Claude28-Sep-03 9:21
Gagnon Claude28-Sep-03 9:21 
Generalsendto(); question. Pin
esepich28-Sep-03 6:28
esepich28-Sep-03 6:28 
Feel free to correct me at any time as I am still trying my best to learn this API. I know that there is a SOCKADDR structure that is able to hold data and family type. I also know that there is a SOCKADDR_IN structure that is able to hold an address, a port number, data and a family type. I have a sendechorequest function set up like this

int CSSPingDlg::SendEchoRequest(SOCKET s, SOCKADDR_IN lpstToAddr);

Now comes the interesting part. Inside this SendEchoRequest function I make a call to the sendto() function. What I take issue with is the fifth parameter of sendto(); which requires a SOCKADDR * that is supposed to contain the address of the host to which to send the data. The problem is that my ping program requires that I use a SOCKADDR_IN structure which is able to hold important information like the IP address of the host. Is there a version of sendto(); that will allow me to pass a SOCKADDR_IN instead of a plain SOCKADDR? Could it be that I am just not using sendto(); correctly.

All I know is that I want to send data to the host specified in the SOCKADDR_IN structure that I have passed to my sendechorequest function. How do I do that?
GeneralRe: sendto(); question. Pin
Steve Mayfield28-Sep-03 18:45
Steve Mayfield28-Sep-03 18:45 
GeneralCustom RichEdit Control Pin
Ph@ntom28-Sep-03 5:53
Ph@ntom28-Sep-03 5:53 
QuestionHow to implement custom 'protocol' handler for IE? Pin
Robert Mao28-Sep-03 5:20
Robert Mao28-Sep-03 5:20 
AnswerRe: How to implement custom 'protocol' handler for IE? Pin
Ryan_Roberts28-Sep-03 5:57
Ryan_Roberts28-Sep-03 5:57 
GeneralMFC Application Pin
MrGee28-Sep-03 5:06
MrGee28-Sep-03 5:06 
GeneralRe: MFC Application Pin
Gary R. Wheeler28-Sep-03 5:18
Gary R. Wheeler28-Sep-03 5:18 
GeneralSyntactical blunder. Pin
esepich28-Sep-03 2:32
esepich28-Sep-03 2:32 
GeneralRe: Syntactical blunder. Pin
Ted Ferenc28-Sep-03 3:02
Ted Ferenc28-Sep-03 3:02 
GeneralRe: Syntactical blunder. Pin
Gary R. Wheeler28-Sep-03 5:22
Gary R. Wheeler28-Sep-03 5:22 
QuestionWhy open two projects in the same VC IDE? Pin
George227-Sep-03 20:41
George227-Sep-03 20:41 
AnswerRe: Why open two projects in the same VC IDE? Pin
Andrew Walker27-Sep-03 23:38
Andrew Walker27-Sep-03 23:38 
GeneralRe: Why open two projects in the same VC IDE? Pin
Mike Dimmick28-Sep-03 0:02
Mike Dimmick28-Sep-03 0:02 
GeneralRe: Why open two projects in the same VC IDE? Pin
George228-Sep-03 4:00
George228-Sep-03 4:00 
GeneralRe: Why open two projects in the same VC IDE? Pin
Mike Dimmick28-Sep-03 4:16
Mike Dimmick28-Sep-03 4:16 
GeneralRe: Why open two projects in the same VC IDE? Pin
George229-Sep-03 3:41
George229-Sep-03 3:41 
GeneralRe: Why open two projects in the same VC IDE? Pin
George228-Sep-03 3:59
George228-Sep-03 3:59 
Questionwhat this error means? Pin
coda_x27-Sep-03 20:20
coda_x27-Sep-03 20:20 

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.