Click here to Skip to main content
15,918,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Export String in .txt file Pin
toxcct8-Mar-07 2:26
toxcct8-Mar-07 2:26 
AnswerRe: Export String in .txt file Pin
prasad_som8-Mar-07 2:54
prasad_som8-Mar-07 2:54 
Questiongetting Linking Error while compling Simple Device Manager Pin
VC_RYK8-Mar-07 2:19
VC_RYK8-Mar-07 2:19 
AnswerRe: getting Linking Error while compling Simple Device Manager Pin
prasad_som8-Mar-07 4:19
prasad_som8-Mar-07 4:19 
AnswerRe: getting Linking Error while compling Simple Device Manager Pin
Mark Salsbery8-Mar-07 6:25
Mark Salsbery8-Mar-07 6:25 
GeneralRe: getting Linking Error while compling Simple Device Manager Pin
VC_RYK9-Mar-07 0:47
VC_RYK9-Mar-07 0:47 
Questioncopy structures to buffer Pin
Zapacila8-Mar-07 2:03
Zapacila8-Mar-07 2:03 
AnswerRe: copy structures to buffer Pin
krmed8-Mar-07 2:48
krmed8-Mar-07 2:48 
One problem I see at first glance is:
char * buff=new char[sizeof(Bitmap)+sizeof(bfh)]; create a buffer
sizeof(Bitmap) is going to give 4 bytes, since Bitmap is a pointer.

You need to use
char * buff=new char[length+sizeof(bfh)]; create a buffer
just like you have in your memcpy. (This is assuming, of course, that length is properly set before you new the buff.

Hope that helps.


Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

QuestionRe: copy structures to buffer Pin
David Crow8-Mar-07 3:02
David Crow8-Mar-07 3:02 
AnswerRe: copy structures to buffer Pin
Zapacila8-Mar-07 4:05
Zapacila8-Mar-07 4:05 
GeneralRe: copy structures to buffer Pin
David Crow8-Mar-07 4:11
David Crow8-Mar-07 4:11 
QuestionRe: copy structures to buffer Pin
David Crow8-Mar-07 4:16
David Crow8-Mar-07 4:16 
QuestionNeed help to set window style! Pin
bosfan8-Mar-07 1:49
bosfan8-Mar-07 1:49 
AnswerRe: Need help to set window style! Pin
Jun Du8-Mar-07 2:01
Jun Du8-Mar-07 2:01 
GeneralRe: Need help to set window style! Pin
bosfan8-Mar-07 3:08
bosfan8-Mar-07 3:08 
GeneralRe: Need help to set window style! Pin
Jun Du8-Mar-07 5:21
Jun Du8-Mar-07 5:21 
AnswerRe: Need help to set window style! Pin
_AnsHUMAN_ 8-Mar-07 2:10
_AnsHUMAN_ 8-Mar-07 2:10 
GeneralRe: Need help to set window style! Pin
David Crow8-Mar-07 3:05
David Crow8-Mar-07 3:05 
GeneralRe: Need help to set window style! Pin
bosfan8-Mar-07 3:07
bosfan8-Mar-07 3:07 
GeneralRe: Need help to set window style! Pin
David Crow8-Mar-07 3:17
David Crow8-Mar-07 3:17 
GeneralRe: Need help to set window style! Pin
bosfan8-Mar-07 3:06
bosfan8-Mar-07 3:06 
AnswerRe: Need help to set window style! Pin
Paresh Chitte8-Mar-07 17:12
Paresh Chitte8-Mar-07 17:12 
QuestionMixed UCS-2 and 1-byte ASCII characters Pin
jones1668-Mar-07 1:41
jones1668-Mar-07 1:41 
AnswerRe: Mixed UCS-2 and 1-byte ASCII characters Pin
Nemanja Trifunovic8-Mar-07 1:51
Nemanja Trifunovic8-Mar-07 1:51 
GeneralRe: Mixed UCS-2 and 1-byte ASCII characters Pin
jones1668-Mar-07 2:10
jones1668-Mar-07 2:10 

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.