Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Zapacila wrote:
char * buff=new char[sizeof(Bitmap)+sizeof(bfh)]; create a buffer


This will allocate 18 bytes instead of 58.

Zapacila wrote:
i want to but the bits of those structures into a buffer : thats what he does here:

File.Write(&bfh,sizeof(bfh));
File.Write(Bitmap,Length);


Wrong. The two calls to Write() are not putting anything into a buffer. They are writing to a file.

So what exactly are you needing to do with buff?


"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


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 
GeneralRe: Mixed UCS-2 and 1-byte ASCII characters Pin
Nemanja Trifunovic8-Mar-07 2:36
Nemanja Trifunovic8-Mar-07 2:36 
QuestionHow to check extended style of List View? Pin
Aryan S8-Mar-07 1:39
Aryan S8-Mar-07 1:39 
AnswerRe: How to check extended style of List View? Pin
vibindia8-Mar-07 2:05
vibindia8-Mar-07 2:05 
QuestionGetting the IE cache entry of the image displayed in the IE Pin
Suyash8-Mar-07 1:05
Suyash8-Mar-07 1:05 

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.