Click here to Skip to main content
16,006,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralImplementation of STL Sort function Pin
16-May-02 16:35
suss16-May-02 16:35 
GeneralRe: Implementation of STL Sort function Pin
Christian Graus16-May-02 17:08
protectorChristian Graus16-May-02 17:08 
GeneralRe: Implementation of STL Sort function Pin
Joaquín M López Muñoz16-May-02 19:53
Joaquín M López Muñoz16-May-02 19:53 
GeneralRe: Implementation of STL Sort function Pin
Christian Graus16-May-02 19:54
protectorChristian Graus16-May-02 19:54 
GeneralCalling WSASend() Consecutively :: Winsock Pin
valikac16-May-02 16:22
valikac16-May-02 16:22 
GeneralRe: Calling WSASend() Consecutively :: Winsock Pin
markkuk16-May-02 19:55
markkuk16-May-02 19:55 
GeneralRe: Calling WSASend() Consecutively :: Winsock Pin
Joaquín M López Muñoz16-May-02 20:01
Joaquín M López Muñoz16-May-02 20:01 
GeneralRe: Calling WSASend() Consecutively :: Winsock Pin
valikac17-May-02 5:36
valikac17-May-02 5:36 
Thanks.

I am developing the program under WindowsXP and Athlon 750mhz.

I am very, very close to getting everything working as planned. Here is my progress. The program sends data perfectly (I believe). For example:

// Given WSABUF dataHDR, dataMessage

- send header buffer (dataHDR.Buf = data size)
- send data buffer (dataMessage.Buf = message)

// Given WSABUF inHDR, inMessage

- receive header buffer (inHDR = data size)
- use atol() to convert inHDR.Buf into an integer data size
- receive data buffer (inMessage.Buf = message)

Okay. I checked the actual receive size after calling WSARecv for the data buffer. The receive size is accurate, i.e. it received the exact number of byte that was sent. However, I cannot extract all characters from inMessage.Buf.

I use this code to extract the characters from inMessage.Buf

// CString message;
// message += *inMessage.Buf

The problem is the code above only extracts the *first* character in inMessage.Buf. I have considered that maybe only one character or byte is inside of inMessage.Buf; however, according to the check I did above on the actual received size, everything seems accurate.

Am I not converting inMessage.Buf correctly?

Kuphryn
QuestionGetting a list of drives ? Pin
16-May-02 15:59
suss16-May-02 15:59 
AnswerRe: Getting a list of drives ? Pin
Jason Henderson16-May-02 16:16
Jason Henderson16-May-02 16:16 
GeneralRe: Getting a list of drives ? Pin
Carlos Antollini16-May-02 18:19
Carlos Antollini16-May-02 18:19 
QuestionSetting min values for resize? Pin
16-May-02 15:57
suss16-May-02 15:57 
AnswerRe: Setting min values for resize? Pin
Jason Henderson16-May-02 16:12
Jason Henderson16-May-02 16:12 
AnswerRe: Setting min values for resize? Pin
Prem Kumar16-May-02 18:45
Prem Kumar16-May-02 18:45 
Generalhaving problems with cin "go figuere :)" Pin
SilverShalkin16-May-02 15:12
SilverShalkin16-May-02 15:12 
GeneralRe: having problems with cin "go figuere :)" Pin
Christian Graus16-May-02 15:44
protectorChristian Graus16-May-02 15:44 
Questionwhats wrong here? Pin
Steve L.16-May-02 13:07
Steve L.16-May-02 13:07 
AnswerRe: whats wrong here? Pin
Rama Krishna Vavilala16-May-02 14:33
Rama Krishna Vavilala16-May-02 14:33 
GeneralRe: whats wrong here? Pin
hex16-May-02 16:28
hex16-May-02 16:28 
AnswerRe: whats wrong here? Pin
Nish Nishant16-May-02 14:34
sitebuilderNish Nishant16-May-02 14:34 
AnswerRe: whats wrong here? Pin
Brian Olej16-May-02 15:50
Brian Olej16-May-02 15:50 
GeneralRe: whats wrong here? Pin
Christian Graus16-May-02 17:09
protectorChristian Graus16-May-02 17:09 
Generaliostreams find file size Pin
Christian Graus16-May-02 12:38
protectorChristian Graus16-May-02 12:38 
GeneralRe: iostreams find file size Pin
Rama Krishna Vavilala16-May-02 12:46
Rama Krishna Vavilala16-May-02 12:46 
GeneralRe: iostreams find file size Pin
Christian Graus16-May-02 12:48
protectorChristian Graus16-May-02 12:48 

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.