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

C / C++ / MFC

 
Generalnewbie : Creating Owner Draw Menu Pin
DBase_3-Aug-05 22:53
DBase_3-Aug-05 22:53 
GeneralRe: newbie : Creating Owner Draw Menu Pin
toxcct4-Aug-05 1:08
toxcct4-Aug-05 1:08 
GeneralWindows Spy++ Utility Pin
ddmcr3-Aug-05 22:48
ddmcr3-Aug-05 22:48 
GeneralRe: Windows Spy++ Utility Pin
Jon Hulatt3-Aug-05 23:10
Jon Hulatt3-Aug-05 23:10 
GeneralRe: Windows Spy++ Utility Pin
ddmcr3-Aug-05 23:26
ddmcr3-Aug-05 23:26 
GeneralRe: Windows Spy++ Utility Pin
Blake Miller4-Aug-05 4:55
Blake Miller4-Aug-05 4:55 
GeneralMetaFiles Pin
popo843-Aug-05 22:31
popo843-Aug-05 22:31 
GeneralRe: MetaFiles Pin
badal_akr4-Aug-05 0:33
badal_akr4-Aug-05 0:33 
Same problem i faced yesterday and fixed it.
In my case i was creating a DISPLAY DC and one Compatible DC and one Bitmap memory through CreateDIBSection API call.

hdc = CreateDC("DISPLAY",NULL,NULL,NULL);
Bitmap = CreateDIBSection(hdc, pBMI, DIB_RGB_COLORS, (void**)&m_pVideoBits, 0, 0);
HDC hSrcDC = CreateCompatibleDC(hdc);
SelectObject(hSrcDC, m_hViewfinderBitmap);

while Deleting the Bitmap and DC you should follow the following way
DeleteDC(hSrcDC);
DeleteObject(Bitmap);
DeleteDC(hdc);

If your code also have some this kind of thing then please take care that, you should not clean a bitmap untill it is attached to the DC

Hope i could help you some way.

Regards


Anil Kumar
QuestionStructure Alignment? Pin
badal_akr3-Aug-05 22:29
badal_akr3-Aug-05 22:29 
AnswerRe: Structure Alignment? Pin
Halawlaws3-Aug-05 23:08
Halawlaws3-Aug-05 23:08 
AnswerRe: Structure Alignment? Pin
Halawlaws3-Aug-05 23:10
Halawlaws3-Aug-05 23:10 
GeneralRe: Structure Alignment? Pin
badal_akr4-Aug-05 0:41
badal_akr4-Aug-05 0:41 
GeneralRe: Structure Alignment? Pin
Blake Miller4-Aug-05 5:04
Blake Miller4-Aug-05 5:04 
GeneralRe: Structure Alignment? Pin
GKarRacer5-Aug-05 9:38
GKarRacer5-Aug-05 9:38 
Generalproblems while assigning CString object. Pin
a_david1233-Aug-05 22:03
a_david1233-Aug-05 22:03 
GeneralRe: problems while assigning CString object. Pin
toxcct3-Aug-05 22:11
toxcct3-Aug-05 22:11 
GeneralRe: problems while assigning CString object. Pin
Eytukan3-Aug-05 23:46
Eytukan3-Aug-05 23:46 
GeneralClose Open Windows with Escape-Key Pin
Daniel Gerstner3-Aug-05 21:38
Daniel Gerstner3-Aug-05 21:38 
GeneralRe: Close Open Windows with Escape-Key Pin
Daniel Gerstner3-Aug-05 23:01
Daniel Gerstner3-Aug-05 23:01 
GeneralRe: Close Open Windows with Escape-Key Pin
Blake Miller4-Aug-05 5:06
Blake Miller4-Aug-05 5:06 
GeneralRe: Close Open Windows with Escape-Key Pin
Daniel Gerstner4-Aug-05 19:02
Daniel Gerstner4-Aug-05 19:02 
GeneralRe: Close Open Windows with Escape-Key Pin
Blake Miller5-Aug-05 6:04
Blake Miller5-Aug-05 6:04 
QuestionHow to Do printing Activexcontol Pin
sjsankar3-Aug-05 21:37
sjsankar3-Aug-05 21:37 
GeneralObject oriented software metrics Pin
ilgale3-Aug-05 21:21
ilgale3-Aug-05 21:21 
QuestionThe Command Line paramters passed to other processes? Pin
Julien3-Aug-05 19:47
Julien3-Aug-05 19:47 

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.