Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how do i typecast a CString to TCHAR type? Pin
Jose Lamas Rios3-Oct-05 20:29
Jose Lamas Rios3-Oct-05 20:29 
Questionhow to clear browse info Pin
Anonymous3-Oct-05 18:30
Anonymous3-Oct-05 18:30 
AnswerRe: how to clear browse info Pin
ThatsAlok3-Oct-05 19:18
ThatsAlok3-Oct-05 19:18 
AnswerRe: how to clear browse info Pin
Prakash Nadar3-Oct-05 22:15
Prakash Nadar3-Oct-05 22:15 
QuestionUsing GDI+ in View Pin
The NULL Developer3-Oct-05 18:23
professionalThe NULL Developer3-Oct-05 18:23 
AnswerRe: Using GDI+ in View Pin
The NULL Developer3-Oct-05 20:59
professionalThe NULL Developer3-Oct-05 20:59 
GeneralRe: Using GDI+ in View Pin
Prakash Nadar3-Oct-05 22:55
Prakash Nadar3-Oct-05 22:55 
GeneralRe: Using GDI+ in View Pin
The NULL Developer3-Oct-05 23:20
professionalThe NULL Developer3-Oct-05 23:20 
Well..if you say so...

I was wrongly calling GdiplusShutdown(m_gdiplusToken) here:

BOOL CMyApp::InitInstance()
{
...

// The one and only window has been initialized, so show and update it
	m_pMainWnd->ShowWindow(SW_SHOW);
	m_pMainWnd->UpdateWindow();
	// call DragAcceptFiles only if there's a suffix
	//  In an SDI app, this should occur after ProcessShellCommand
	GdiplusShutdown(m_gdiplusToken);

	return TRUE;
}


instead of here:

int CMyApp::ExitInstance()
{
	// TODO: Add your specialized code here and/or call the base class
	GdiplusShutdown(m_gdiplusToken);

	return CWinApp::ExitInstance();
}



"Do first things first, and second things not at all."
Peter Drucker.

QuestionAccessing the Store procedure in c++ Pin
Anonymous3-Oct-05 17:15
Anonymous3-Oct-05 17:15 
QuestionPocket PC emulator Pin
fjlv20053-Oct-05 15:58
fjlv20053-Oct-05 15:58 
AnswerRe: Pocket PC emulator Pin
Ghasrfakhri3-Oct-05 21:12
Ghasrfakhri3-Oct-05 21:12 
GeneralRe: Pocket PC emulator Pin
fjlv20054-Oct-05 15:29
fjlv20054-Oct-05 15:29 
QuestionSimplifying debug traces in the Output window Pin
srev3-Oct-05 14:07
srev3-Oct-05 14:07 
AnswerRe: Simplifying debug traces in the Output window Pin
David Crow4-Oct-05 3:18
David Crow4-Oct-05 3:18 
QuestionActiveX and NM_CUSTOMDRAW Pin
levaey3-Oct-05 12:50
levaey3-Oct-05 12:50 
AnswerRe: ActiveX and NM_CUSTOMDRAW Pin
Anonymous3-Oct-05 13:52
Anonymous3-Oct-05 13:52 
GeneralRe: ActiveX and NM_CUSTOMDRAW Pin
levaey5-Oct-05 7:55
levaey5-Oct-05 7:55 
GeneralRe: ActiveX and NM_CUSTOMDRAW Pin
lroels7-May-09 4:07
lroels7-May-09 4:07 
QuestionConvert unsigned 16 bit Word Pin
simonpearson3-Oct-05 12:50
simonpearson3-Oct-05 12:50 
AnswerRe: Convert unsigned 16 bit Word Pin
Fired Fish3-Oct-05 13:56
Fired Fish3-Oct-05 13:56 
GeneralRe: Convert unsigned 16 bit Word Pin
Prakash Nadar3-Oct-05 22:18
Prakash Nadar3-Oct-05 22:18 
AnswerRe: Convert unsigned 16 bit Word Pin
Chris Losinger3-Oct-05 14:00
professionalChris Losinger3-Oct-05 14:00 
AnswerRe: Convert unsigned 16 bit Word Pin
Rick York3-Oct-05 16:34
mveRick York3-Oct-05 16:34 
QuestionReading and writing some data from an Excel file Pin
zohresaeed3-Oct-05 12:48
zohresaeed3-Oct-05 12:48 
AnswerRe: Reading and writing some data from an Excel file Pin
Simon Yan3-Oct-05 18:14
Simon Yan3-Oct-05 18:14 

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.