Click here to Skip to main content
15,914,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Message Loop - CCmdTarget(urgent) Pin
CPallini29-Oct-09 22:20
mveCPallini29-Oct-09 22:20 
GeneralRe: Message Loop - CCmdTarget(urgent) Pin
Cedric Moonen29-Oct-09 22:26
Cedric Moonen29-Oct-09 22:26 
GeneralOT- about mood Pin
CPallini29-Oct-09 22:31
mveCPallini29-Oct-09 22:31 
GeneralRe: OT- about mood Pin
HimanshuJoshi29-Oct-09 23:37
HimanshuJoshi29-Oct-09 23:37 
GeneralRe: OT- about mood Pin
CPallini29-Oct-09 23:57
mveCPallini29-Oct-09 23:57 
Questionhow to convert tiff to pdf it's urgent Pin
eswar pothula29-Oct-09 18:59
eswar pothula29-Oct-09 18:59 
AnswerRe: how to convert tiff to pdf it's urgent Pin
Adam Roderick J29-Oct-09 19:21
Adam Roderick J29-Oct-09 19:21 
AnswerRe: how to convert tiff to pdf it's urgent Pin
Game-point29-Oct-09 19:43
Game-point29-Oct-09 19:43 
AnswerRe: how to convert tiff to pdf it's urgent Pin
enhzflep29-Oct-09 20:57
enhzflep29-Oct-09 20:57 
GeneralRe: how to convert tiff to pdf it's urgent Pin
Cedric Moonen29-Oct-09 21:13
Cedric Moonen29-Oct-09 21:13 
QuestionRe: how to convert tiff to pdf it's urgent Pin
CPallini29-Oct-09 22:16
mveCPallini29-Oct-09 22:16 
QuestionHow to create Toolbar banner Pin
Anu_Bala29-Oct-09 18:47
Anu_Bala29-Oct-09 18:47 
AnswerRe: How to create Toolbar banner Pin
Richard MacCutchan29-Oct-09 23:22
mveRichard MacCutchan29-Oct-09 23:22 
QuestionDisable keyboard & mouse input Pin
Cpp_Com29-Oct-09 18:41
Cpp_Com29-Oct-09 18:41 
AnswerRe: Disable keyboard & mouse input Pin
Adam Roderick J29-Oct-09 18:50
Adam Roderick J29-Oct-09 18:50 
GeneralRe: Disable keyboard & mouse input Pin
Cpp_Com29-Oct-09 18:57
Cpp_Com29-Oct-09 18:57 
QuestionRe: Disable keyboard & mouse input Pin
Adam Roderick J29-Oct-09 19:24
Adam Roderick J29-Oct-09 19:24 
AnswerRe: Disable keyboard & mouse input Pin
Cpp_Com29-Oct-09 19:28
Cpp_Com29-Oct-09 19:28 
GeneralRe: Disable keyboard & mouse input Pin
Adam Roderick J29-Oct-09 19:30
Adam Roderick J29-Oct-09 19:30 
GeneralRe: Disable keyboard & mouse input Pin
Cpp_Com29-Oct-09 19:33
Cpp_Com29-Oct-09 19:33 
GeneralRe: Disable keyboard & mouse input Pin
Adam Roderick J29-Oct-09 20:07
Adam Roderick J29-Oct-09 20:07 
QuestionI need help figuring out this C++ Pin
halestorm 22229-Oct-09 18:29
halestorm 22229-Oct-09 18:29 
AnswerRe: I need help figuring out this C++ Pin
Adam Roderick J29-Oct-09 18:35
Adam Roderick J29-Oct-09 18:35 
QuestionRe: I need help figuring out this C++ Pin
David Crow30-Oct-09 3:36
David Crow30-Oct-09 3:36 
QuestionUnhandled exception in CreateCompatibleBitmap() Pin
tibbasultanpur29-Oct-09 18:26
tibbasultanpur29-Oct-09 18:26 
I have calling Initialize function with these parameters
Initialize(this->GetDC(),200,200);


Unhandled exception occurred at: m_pBitmap->CreateCompatibleBitmap(pInputDC,width,height);

void Initialize(CDC* pInputDC,int width, int height)
{
        CDC *m_pDC;
	CBitmap* m_pBitmap;

	m_pDC->CreateCompatibleDC(pInputDC);
	m_pBitmap->CreateCompatibleBitmap(pInputDC, width, height);
	m_pDC->SelectObject(m_pBitmap);
	m_pDC->Rectangle(0,0,width,height);
}


This is shown in call stack when exception occurred:
mfc80ud.dll!CGdiObject::Attach(void * hObject=0xb90510f0)  Line 1157 + 0x3 bytes
mfc80ud.dll!CBitmap::CreateCompatibleBitmap(CDC * pDC=0x004bf954, int nWidth=336, int nHeight=189)  Line 251 + 0x25 bytes
AxGraph.ocx!CGraphCtrl::Initialize(CDC * pInputDC=0x004bf954, int width=336, int height=189)  Line 27


I could not understand why is this happening. Help to resolve the issue.

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.