Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 6:49
Jörgen Sigvardsson22-Aug-04 6:49 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 11:21
professionalPJ Arends22-Aug-04 11:21 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 11:30
Jörgen Sigvardsson22-Aug-04 11:30 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 12:13
professionalPJ Arends22-Aug-04 12:13 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 12:15
Jörgen Sigvardsson22-Aug-04 12:15 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 12:28
professionalPJ Arends22-Aug-04 12:28 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 12:30
Jörgen Sigvardsson22-Aug-04 12:30 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson23-Aug-04 10:19
Jörgen Sigvardsson23-Aug-04 10:19 
WTL::CImageList and ::GetIconInfo() got the best of me today. Sigh | :sigh: It turned out WTL::CImageList::~CImageList() doesn't free the encapsulated HIMAGELIST, and that ::GetIconInfo() allocate bitmaps which the caller has to free.

On top of that, I tried using a trial version of boundschecker to find the problem quick and easy. Guess what? Boundschecker is a lying and incompetent piece of sh*t software. Cry | :(( It reported a bunch of false positives (verified by seeing the debugger stop at break points in destructors of "unfreed" objects), it can't ref count on COM objects (I saw the IPicture->Release() return 0!), it also never figured out that my image lists were leaking. Tough day at the office. Sigh | :sigh:

But I have noticed an odd thing with GDI objects in general. Something which all programs exhibit, and sometimes even more so when themes are turned on. When you open a dialog (any dialog - you can try with the about box for IE to see for yourself), the GDI object count goes up, let's say X + n. Understandable. But when I close the dialog, the count doesn't go down as much as it went up, let's say X + n - m, where m < n. However, if I reopen the dialog, the GDI object count goes up to X + n again, and back to X + n - m when I close it. It seems as if the dialog resource itself is cached in memory somewhere whenever it's been loaded from the resource part of the exe/dll. I wish I had the source code for CreateDialog(), because now I'm really curious Smile | :)

So, anyway, tomorrow I'll be back on track again to finish off my accelerator stuff.

--
...Coca Cola, sometimes war...
GeneralGetModuleHandle Problem Pin
Abin22-Aug-04 0:50
Abin22-Aug-04 0:50 
GeneralRe: GetModuleHandle Problem Pin
Blake Miller30-Aug-04 7:05
Blake Miller30-Aug-04 7:05 
GeneralDirectShow error Pin
Andre Massada21-Aug-04 22:37
Andre Massada21-Aug-04 22:37 
GeneralWSB_PROP_PALETTE Pin
Franc Morales21-Aug-04 20:09
Franc Morales21-Aug-04 20:09 
GeneralRe: WSB_PROP_PALETTE Pin
Junaij21-Aug-12 19:46
Junaij21-Aug-12 19:46 
Generalvisual studios 6.0 question Pin
Tyrus18221-Aug-04 18:22
Tyrus18221-Aug-04 18:22 
GeneralRe: visual studios 6.0 question Pin
Ravi Bhavnani21-Aug-04 18:35
professionalRavi Bhavnani21-Aug-04 18:35 
GeneralRe: visual studios 6.0 question Pin
Tyrus18221-Aug-04 18:44
Tyrus18221-Aug-04 18:44 
GeneralRe: visual studios 6.0 question Pin
Ravi Bhavnani21-Aug-04 18:47
professionalRavi Bhavnani21-Aug-04 18:47 
GeneralRe: visual studios 6.0 question Pin
cmk22-Aug-04 16:00
cmk22-Aug-04 16:00 
GeneralComparison of file names Pin
alex.barylski21-Aug-04 15:17
alex.barylski21-Aug-04 15:17 
GeneralRe: Comparison of file names Pin
Ravi Bhavnani21-Aug-04 18:26
professionalRavi Bhavnani21-Aug-04 18:26 
GeneralRe: Comparison of file names Pin
bikram singh22-Aug-04 7:06
bikram singh22-Aug-04 7:06 
GeneralRe: Comparison of file names Pin
alex.barylski22-Aug-04 10:51
alex.barylski22-Aug-04 10:51 
GeneralSending data through winsock Pin
Archer28221-Aug-04 13:05
Archer28221-Aug-04 13:05 
GeneralRe: Sending data through winsock Pin
Steve Mayfield21-Aug-04 19:43
Steve Mayfield21-Aug-04 19:43 
GeneralRe: Sending data through winsock Pin
Andrew Peace22-Aug-04 5:35
Andrew Peace22-Aug-04 5:35 

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.