Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalregarding mouse events..... Pin
namaskaaram16-Nov-04 3:43
namaskaaram16-Nov-04 3:43 
GeneralRe: regarding mouse events..... Pin
Blake Miller16-Nov-04 4:43
Blake Miller16-Nov-04 4:43 
GeneralRe: regarding mouse events..... Pin
namaskaaram16-Nov-04 17:52
namaskaaram16-Nov-04 17:52 
GeneralRe: regarding mouse events..... Pin
Blake Miller17-Nov-04 4:05
Blake Miller17-Nov-04 4:05 
GeneralRe: regarding mouse events..... Pin
namaskaaram17-Nov-04 18:50
namaskaaram17-Nov-04 18:50 
GeneralRe: regarding mouse events..... Pin
Blake Miller18-Nov-04 4:04
Blake Miller18-Nov-04 4:04 
GeneralCoTaskMemAlloc and BITMAPINFO Pin
dmxdmxdmx0516-Nov-04 3:39
dmxdmxdmx0516-Nov-04 3:39 
GeneralRe: CoTaskMemAlloc and BITMAPINFO Pin
Blake Miller16-Nov-04 4:49
Blake Miller16-Nov-04 4:49 
I suppose, because the MSDN DOCUMENTATION has this to say...

The initial contents of the returned memory block are undefined – there is no guarantee that the block has been initialized. OMG | :OMG:

So, if you want the memoryto be all ZEROed out, you must do it yourelf, thusly:

pDibImage = (LPBITMAPINFO)CoTaskMemAlloc(400);
if( pDibImage ){
ZeroMemory(pDibImage, 400);
}

You just randomly drew some 'zeroes' when you allocated the larger block.

The minimum size is 0:

If cb is zero, CoTaskMemAlloc allocates a zero-length item and returns a valid pointer to that item. If there is insufficient memory available, CoTaskMemAlloc returns NULL.

Also...

Note Applications should always check the return value from this method, even when requesting small amounts of memory, because there is no guarantee the memory will be allocated.
Generalusing non-English languages in visual c++.... Pin
shah170116-Nov-04 3:11
shah170116-Nov-04 3:11 
GeneralRe: want icons in subitems of listview, but not first column Pin
BlackDice16-Nov-04 2:51
BlackDice16-Nov-04 2:51 
QuestionHow do I... Pin
KORCARI16-Nov-04 2:10
KORCARI16-Nov-04 2:10 
AnswerRe: How do I... Pin
David Crow16-Nov-04 2:44
David Crow16-Nov-04 2:44 
QuestionHow to make Custom Explorer Bars to Internet Explorer? Pin
pubududilena16-Nov-04 1:38
pubududilena16-Nov-04 1:38 
AnswerRe: How to make Custom Explorer Bars to Internet Explorer? Pin
ThatsAlok16-Nov-04 2:34
ThatsAlok16-Nov-04 2:34 
QuestionHow to import both adoce31.dll & adoxce31.dll? Pin
george ivanov16-Nov-04 0:56
george ivanov16-Nov-04 0:56 
AnswerRe: How to import both adoce31.dll & adoxce31.dll? Pin
Antony M Kancidrowski16-Nov-04 1:47
Antony M Kancidrowski16-Nov-04 1:47 
AnswerRe: How to import both adoce31.dll & adoxce31.dll? Pin
RChin16-Nov-04 2:02
RChin16-Nov-04 2:02 
GeneralMDI CFormView and Dialog Templates Pin
navalgap16-Nov-04 0:10
navalgap16-Nov-04 0:10 
Questionhow do i put a bmp into an exe file??? Pin
namaskaaram15-Nov-04 23:58
namaskaaram15-Nov-04 23:58 
AnswerRe: how do i put a bmp into an exe file??? Pin
User 21559716-Nov-04 0:25
User 21559716-Nov-04 0:25 
GeneralRe: how do i put a bmp into an exe file??? Pin
namaskaaram16-Nov-04 0:53
namaskaaram16-Nov-04 0:53 
GeneralRe: how do i put a bmp into an exe file??? Pin
ThatsAlok16-Nov-04 2:37
ThatsAlok16-Nov-04 2:37 
GeneralRe: how do i put a bmp into an exe file???.....not the desired output!!!!! Pin
namaskaaram16-Nov-04 3:18
namaskaaram16-Nov-04 3:18 
GeneralRe: how do i put a bmp into an exe file???.....not the desired output!!!!! Pin
Antony M Kancidrowski16-Nov-04 4:36
Antony M Kancidrowski16-Nov-04 4:36 
Generalthanx!!!!! Pin
namaskaaram16-Nov-04 19:11
namaskaaram16-Nov-04 19:11 

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.