Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiline Tray Tooltip Pin
Alberto Giannetto8-Aug-02 3:52
Alberto Giannetto8-Aug-02 3:52 
GeneralAppendChunk bombs Pin
nss8-Aug-02 1:24
nss8-Aug-02 1:24 
GeneralRe: AppendChunk bombs Pin
Ravi Bhavnani8-Aug-02 3:00
professionalRavi Bhavnani8-Aug-02 3:00 
GeneralRe: AppendChunk bombs Pin
nss8-Aug-02 5:08
nss8-Aug-02 5:08 
GeneralRe: AppendChunk bombs Pin
Ravi Bhavnani8-Aug-02 5:43
professionalRavi Bhavnani8-Aug-02 5:43 
GeneralRe: AppendChunk bombs Pin
nss8-Aug-02 7:08
nss8-Aug-02 7:08 
GeneralRe: AppendChunk bombs Pin
Ravi Bhavnani8-Aug-02 11:43
professionalRavi Bhavnani8-Aug-02 11:43 
GeneralRe: AppendChunk bombs Pin
Joel Lucsy8-Aug-02 6:11
Joel Lucsy8-Aug-02 6:11 
A couple of things: 1) A CString can't hold binary data from a bitmap. Bitmaps have NULL characters which CString uses to find the end of the string. Don't use the CString at all, it's not needed.
2). You use pImage with initializing it. char *pImage = new char[ size ]; also don't forget to delete [] pImage;
3). no need to put a zero at the end, NULL terminating binary data really doesn't do or mean anything.

There are other things that are not needed and the code could be greatly simplified but your basic assumptions are a tad off.



Joel Lucsy (jjlucsy@ameritech.net)

GeneralRe: AppendChunk bombs Pin
nss8-Aug-02 7:18
nss8-Aug-02 7:18 
GeneralRe: AppendChunk bombs Pin
nss8-Aug-02 7:40
nss8-Aug-02 7:40 
GeneralRe: AppendChunk bombs Pin
Joel Lucsy8-Aug-02 12:54
Joel Lucsy8-Aug-02 12:54 
GeneralHmmmm Pin
nss8-Aug-02 14:22
nss8-Aug-02 14:22 
GeneralSimple parameter return question (strings) Pin
-Dy8-Aug-02 1:12
-Dy8-Aug-02 1:12 
GeneralRe: Simple parameter return question (strings) Pin
8-Aug-02 1:32
suss8-Aug-02 1:32 
GeneralRe: Simple parameter return question (strings) Pin
Tomasz Sowinski8-Aug-02 1:32
Tomasz Sowinski8-Aug-02 1:32 
GeneralRe: Simple parameter return question (strings) Pin
Rutger Ellen8-Aug-02 1:48
Rutger Ellen8-Aug-02 1:48 
GeneralHELP ME........... Pin
Anonymous8-Aug-02 0:30
Anonymous8-Aug-02 0:30 
GeneralRe: HELP ME........... Pin
Ravi Bhavnani8-Aug-02 3:14
professionalRavi Bhavnani8-Aug-02 3:14 
Generalquestion on recv() function Pin
zecodela8-Aug-02 0:30
zecodela8-Aug-02 0:30 
GeneralRe: question on recv() function Pin
markkuk8-Aug-02 0:45
markkuk8-Aug-02 0:45 
GeneralRe: question on recv() function Pin
zecodela8-Aug-02 15:53
zecodela8-Aug-02 15:53 
GeneralIrregular fatal error Pin
s_k7-Aug-02 23:42
s_k7-Aug-02 23:42 
GeneralRe: Irregular fatal error Pin
Tomasz Sowinski8-Aug-02 0:57
Tomasz Sowinski8-Aug-02 0:57 

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.