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

C / C++ / MFC

 
AnswerRe: adding to char arrays together for one arg Pin
Mark Salsbery9-Jun-07 18:23
Mark Salsbery9-Jun-07 18:23 
AnswerRe: adding to char arrays together for one arg Pin
Iain Clarke, Warrior Programmer10-Jun-07 3:20
Iain Clarke, Warrior Programmer10-Jun-07 3:20 
QuestionHelp , why WSAGetLastError( ) return 2? Pin
danscort yu9-Jun-07 16:42
danscort yu9-Jun-07 16:42 
AnswerRe: Help , why WSAGetLastError( ) return 2? Pin
danscort yu9-Jun-07 17:12
danscort yu9-Jun-07 17:12 
AnswerRe: Help , why WSAGetLastError( ) return 2? Pin
Mark Salsbery9-Jun-07 18:17
Mark Salsbery9-Jun-07 18:17 
GeneralRe: Help , why WSAGetLastError( ) return 2? Pin
danscort yu9-Jun-07 21:13
danscort yu9-Jun-07 21:13 
GeneralRe: Help , why WSAGetLastError( ) return 2? Pin
Mark Salsbery10-Jun-07 5:44
Mark Salsbery10-Jun-07 5:44 
GeneralRe: Help , why WSAGetLastError( ) return 2? Pin
danscort yu11-Jun-07 1:02
danscort yu11-Jun-07 1:02 
OK,
I think I got the reason
Because I reset socket receive buffer size in my program
and in debug mode , system will not alloc system buffer for the socket if no data arrive
so it may return value 2 means file not ready or exist
If the data already arrive , even one and only one byte , system will alloc the buffer size as I reset , and then it will go well
In release mode , buffer will immediately alloc after reset buffer size of socket , so it will go well.

I just think it is a bug fo winsock in reset buffer size .

Hello,
pleasure to meet you.

QuestionRe: Help , why WSAGetLastError( ) return 2? Pin
Mark Salsbery11-Jun-07 6:25
Mark Salsbery11-Jun-07 6:25 
QuestionPassing a class function pointer as an argument Pin
Cyrilix9-Jun-07 14:30
Cyrilix9-Jun-07 14:30 
AnswerRe: Passing a class function pointer as an argument Pin
Nemanja Trifunovic9-Jun-07 14:48
Nemanja Trifunovic9-Jun-07 14:48 
GeneralRe: Passing a class function pointer as an argument Pin
Cyrilix9-Jun-07 14:52
Cyrilix9-Jun-07 14:52 
AnswerRe: Passing a class function pointer as an argument Pin
Mark Salsbery9-Jun-07 15:01
Mark Salsbery9-Jun-07 15:01 
GeneralRe: Passing a class function pointer as an argument Pin
Cyrilix9-Jun-07 15:17
Cyrilix9-Jun-07 15:17 
GeneralRe: Passing a class function pointer as an argument Pin
Mark Salsbery9-Jun-07 15:28
Mark Salsbery9-Jun-07 15:28 
GeneralRe: Passing a class function pointer as an argument Pin
Cyrilix9-Jun-07 15:40
Cyrilix9-Jun-07 15:40 
GeneralRe: Passing a class function pointer as an argument Pin
Mark Salsbery9-Jun-07 15:59
Mark Salsbery9-Jun-07 15:59 
QuestionSet registry key permissions Pin
KellyR9-Jun-07 10:42
KellyR9-Jun-07 10:42 
QuestionRe: Set registry key permissions Pin
KellyR9-Jun-07 12:07
KellyR9-Jun-07 12:07 
AnswerRe: Set registry key permissions Pin
KellyR10-Jun-07 6:51
KellyR10-Jun-07 6:51 
QuestionHelp Pin
dellthinker9-Jun-07 10:32
dellthinker9-Jun-07 10:32 
AnswerRe: Help Pin
KellyR9-Jun-07 11:03
KellyR9-Jun-07 11:03 
AnswerRe: Help Pin
Christian Graus9-Jun-07 14:10
protectorChristian Graus9-Jun-07 14:10 
QuestionForce Closing of a Module Pin
Bram van Kampen9-Jun-07 9:37
Bram van Kampen9-Jun-07 9:37 
AnswerRe: Force Closing of a Module Pin
Perspx9-Jun-07 13:26
Perspx9-Jun-07 13:26 

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.