Click here to Skip to main content
15,891,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to move rectangle with mouse Pin
«_Superman_»19-Sep-10 20:57
professional«_Superman_»19-Sep-10 20:57 
GeneralRe: How to move rectangle with mouse Pin
raju_shiva21-Sep-10 18:59
raju_shiva21-Sep-10 18:59 
Questionerror LNK2001 and fatal error LNK1120 Pin
AmbiguousName17-Sep-10 22:25
AmbiguousName17-Sep-10 22:25 
AnswerRe: error LNK2001 and fatal error LNK1120 Pin
Richard MacCutchan17-Sep-10 23:03
mveRichard MacCutchan17-Sep-10 23:03 
AnswerRe: error LNK2001 and fatal error LNK1120 Pin
Carlos_never18-Sep-10 0:25
Carlos_never18-Sep-10 0:25 
GeneralRe: error LNK2001 and fatal error LNK1120 Pin
AmbiguousName18-Sep-10 8:57
AmbiguousName18-Sep-10 8:57 
QuestionHow to access BITMAP bmBits - getting void* - unknown size error . Pin
Vaclav_17-Sep-10 18:34
Vaclav_17-Sep-10 18:34 
AnswerRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
Richard MacCutchan17-Sep-10 22:04
mveRichard MacCutchan17-Sep-10 22:04 
A void pointer can be used to point to anything, but the compiler cannot calculate an increment size for it as there is no way of knowing what it will point to at run time. You just need to create a BYTE pointer to this array, cast the void pointer to it and use that to iterate through it thus:
PBYTE pBmBits = (PBYTE) pDoc->bitmap[iBITMAP].bmBits;
bmpBYTE = *pBmBits++;
...

It's time for a new signature.

GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . SOLVED Pin
Vaclav_18-Sep-10 6:04
Vaclav_18-Sep-10 6:04 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . SOLVED Pin
Richard MacCutchan18-Sep-10 6:10
mveRichard MacCutchan18-Sep-10 6:10 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber26-Jan-11 12:32
garaber26-Jan-11 12:32 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
Richard MacCutchan26-Jan-11 22:32
mveRichard MacCutchan26-Jan-11 22:32 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber27-Jan-11 2:53
garaber27-Jan-11 2:53 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber27-Jan-11 3:05
garaber27-Jan-11 3:05 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
Richard MacCutchan27-Jan-11 3:19
mveRichard MacCutchan27-Jan-11 3:19 
QuestionAdd iamge to subbutton in RibbonStatusbar failed? Pin
coolhem17-Sep-10 17:23
coolhem17-Sep-10 17:23 
QuestionDouble average Pin
Tim Dappen17-Sep-10 12:09
Tim Dappen17-Sep-10 12:09 
AnswerRe: Double average Pin
Maximilien17-Sep-10 12:44
Maximilien17-Sep-10 12:44 
GeneralRe: Double average Pin
Tim Dappen17-Sep-10 12:56
Tim Dappen17-Sep-10 12:56 
GeneralRe: Double average Pin
Richard MacCutchan17-Sep-10 22:07
mveRichard MacCutchan17-Sep-10 22:07 
QuestionRe: Double average Pin
David Crow17-Sep-10 15:58
David Crow17-Sep-10 15:58 
AnswerRe: Double average Pin
Maximilien17-Sep-10 16:59
Maximilien17-Sep-10 16:59 
GeneralRe: Double average Pin
David Crow18-Sep-10 9:33
David Crow18-Sep-10 9:33 
AnswerRe: Double average Pin
Tim Craig18-Sep-10 7:08
Tim Craig18-Sep-10 7:08 
AnswerRe: Double average Pin
Stephen Hewitt17-Sep-10 19:19
Stephen Hewitt17-Sep-10 19: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.