Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error Message Pin
ashishbhatt1-Oct-07 19:28
ashishbhatt1-Oct-07 19:28 
GeneralRe: Error Message Pin
zakkas24831-Oct-07 19:26
zakkas24831-Oct-07 19:26 
GeneralRe: Error Message Pin
ashishbhatt1-Oct-07 19:30
ashishbhatt1-Oct-07 19:30 
GeneralRe: Error Message Pin
zakkas24831-Oct-07 19:35
zakkas24831-Oct-07 19:35 
GeneralRe: Error Message Pin
Stephen Hewitt1-Oct-07 19:37
Stephen Hewitt1-Oct-07 19:37 
QuestionRe: Error Message Pin
David Crow2-Oct-07 2:28
David Crow2-Oct-07 2:28 
AnswerRe: Error Message Pin
Cedric Moonen1-Oct-07 20:58
Cedric Moonen1-Oct-07 20:58 
QuestionHow to read bytes from winsock efficiently Pin
Ontanggabe Parulian1-Oct-07 17:20
Ontanggabe Parulian1-Oct-07 17:20 
Dear all,

I am in project of developing ISO 8583 Client Simulator. I got a problem here about how to read response message from the host. The response can contain NULL character any where within the bytes sequence and I never know how long the message is. The only thing about to know the message length is I must read the first two bytes of the message. And the remaining bytes actually is the message it self. Now, I want to create a variable to save the message and I must reserver the memory using "new". But how can I reserve the memory exactly as the message length it self, while the only one way to know the message length is to read the first two bytes of the message.

I am waiting any one response soon.

Ian
AnswerRe: How to read bytes from winsock efficiently Pin
chandu0041-Oct-07 19:27
chandu0041-Oct-07 19:27 
QuestionRe: How to read bytes from winsock efficiently Pin
Ontanggabe Parulian1-Oct-07 19:41
Ontanggabe Parulian1-Oct-07 19:41 
AnswerRe: How to read bytes from winsock efficiently Pin
chandu0041-Oct-07 19:48
chandu0041-Oct-07 19:48 
GeneralRe: (Revision)How to read bytes from winsock efficiently Pin
Ontanggabe Parulian1-Oct-07 20:17
Ontanggabe Parulian1-Oct-07 20:17 
QuestionRe: How to read bytes from winsock efficiently Pin
David Crow2-Oct-07 2:30
David Crow2-Oct-07 2:30 
Questionobviously 0xffff, i.e 65535. Pin
chandu0042-Oct-07 2:38
chandu0042-Oct-07 2:38 
AnswerRe: How to read bytes from winsock efficiently Pin
David Crow2-Oct-07 2:41
David Crow2-Oct-07 2:41 
GeneralRe: How to read bytes from winsock efficiently Pin
chandu0042-Oct-07 2:45
chandu0042-Oct-07 2:45 
AnswerRe: How to read bytes from winsock efficiently Pin
Mark Salsbery1-Oct-07 20:10
Mark Salsbery1-Oct-07 20:10 
AnswerRe: How to read bytes from winsock efficiently (Problem SOLVED) Pin
Ontanggabe Parulian1-Oct-07 20:44
Ontanggabe Parulian1-Oct-07 20:44 
GeneralRe: How to read bytes from winsock efficiently (Problem SOLVED) Pin
Mark Salsbery2-Oct-07 5:04
Mark Salsbery2-Oct-07 5:04 
JokeRe: How to read bytes from winsock efficiently Pin
Moak9-Nov-07 1:25
Moak9-Nov-07 1:25 
QuestionAnyone know how to make something "auto-hide" ? Pin
USAFHokie801-Oct-07 14:07
USAFHokie801-Oct-07 14:07 
AnswerRe: Anyone know how to make something "auto-hide" ? Pin
Hamid_RT1-Oct-07 19:35
Hamid_RT1-Oct-07 19:35 
AnswerRe: Anyone know how to make something "auto-hide" ? Pin
Nelek1-Oct-07 21:42
protectorNelek1-Oct-07 21:42 
QuestionRe: Anyone know how to make something "auto-hide" ? Pin
David Crow2-Oct-07 2:34
David Crow2-Oct-07 2:34 
AnswerRe: Anyone know how to make something "auto-hide" ? Pin
USAFHokie802-Oct-07 12:19
USAFHokie802-Oct-07 12:19 

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.