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

C / C++ / MFC

 
GeneralRe: Passing pointers to function into another function Pin
acerunner3161-Nov-07 12:22
acerunner3161-Nov-07 12:22 
GeneralRe: Passing pointers to function into another function Pin
David Crow2-Nov-07 2:43
David Crow2-Nov-07 2:43 
AnswerRe: Passing pointers to function into another function Pin
Mark Salsbery1-Nov-07 11:04
Mark Salsbery1-Nov-07 11:04 
AnswerRe: Passing pointers to function into another function Pin
Randor 1-Nov-07 11:44
professional Randor 1-Nov-07 11:44 
GeneralRe: Passing pointers to function into another function [modified] Pin
acerunner3161-Nov-07 12:06
acerunner3161-Nov-07 12:06 
AnswerRe: Passing pointers to function into another function [modified] Pin
Stephen Hewitt1-Nov-07 14:35
Stephen Hewitt1-Nov-07 14:35 
QuestionSimple FTP Client Pin
dellthinker1-Nov-07 9:26
dellthinker1-Nov-07 9:26 
AnswerRe: Simple FTP Client Pin
JudyL_MD1-Nov-07 10:20
JudyL_MD1-Nov-07 10:20 
I'm not familiar with the FTP protocol so I can't address that portion of your code. However, I see some problems inside the while loop.

1) You don't check the status of any of your calls to socket, bind, listen or accept - you need to do so. I bet one of them is failing, and checking the error code returned by WSAGetLastError will help you determine what is wrong.

2) Assuming you do successfully create the new socket, you never destroy it at the bottom of the loop.

3) There is no way out of your while loop.

Judy
AnswerRe: Simple FTP Client Pin
Peter Weyzen1-Nov-07 16:24
Peter Weyzen1-Nov-07 16:24 
GeneralRe: Simple FTP Client Pin
dellthinker1-Nov-07 17:07
dellthinker1-Nov-07 17:07 
GeneralRe: Simple FTP Client Pin
Peter Weyzen1-Nov-07 20:30
Peter Weyzen1-Nov-07 20:30 
GeneralRe: Simple FTP Client Pin
dellthinker2-Nov-07 6:53
dellthinker2-Nov-07 6:53 
GeneralRe: Simple FTP Client Pin
Peter Weyzen2-Nov-07 7:32
Peter Weyzen2-Nov-07 7:32 
GeneralRe: Simple FTP Client Pin
Bram van Kampen2-Nov-07 3:22
Bram van Kampen2-Nov-07 3:22 
QuestionWizard 2000 Style Wizard Pin
Larry Mills Sr1-Nov-07 7:14
Larry Mills Sr1-Nov-07 7:14 
QuestionCan I pass through a variable number of arguments to another function? Pin
jp-mocs1-Nov-07 6:25
jp-mocs1-Nov-07 6:25 
AnswerRe: Can I pass through a variable number of arguments to another function? Pin
Luc Pattyn1-Nov-07 7:12
sitebuilderLuc Pattyn1-Nov-07 7:12 
AnswerRe: Can I pass through a variable number of arguments to another function? Pin
Chris Losinger1-Nov-07 7:50
professionalChris Losinger1-Nov-07 7:50 
GeneralRe: Can I pass through a variable number of arguments to another function? Pin
jp-mocs1-Nov-07 12:17
jp-mocs1-Nov-07 12:17 
GeneralRe: Can I pass through a variable number of arguments to another function? Pin
jp-mocs2-Nov-07 5:44
jp-mocs2-Nov-07 5:44 
QuestionOn selection a word in CEdit, which messages windows return? Pin
Gofur Halmurat1-Nov-07 6:19
Gofur Halmurat1-Nov-07 6:19 
AnswerRe: On selection a word in CEdit, which messages windows return? Pin
Maximilien1-Nov-07 6:23
Maximilien1-Nov-07 6:23 
GeneralRe: On selection a word in CEdit, which messages windows return? Pin
Gofur Halmurat1-Nov-07 6:34
Gofur Halmurat1-Nov-07 6:34 
AnswerRe: On selection a word in CEdit, which messages windows return? Pin
Mark Salsbery1-Nov-07 7:01
Mark Salsbery1-Nov-07 7:01 
GeneralRe: On selection a word in CEdit, which messages windows return? Pin
Gofur Halmurat1-Nov-07 7:24
Gofur Halmurat1-Nov-07 7:24 

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.