Click here to Skip to main content
15,890,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CStatic background color problem Pin
Prakash Nadar15-Feb-04 19:55
Prakash Nadar15-Feb-04 19:55 
GeneralRe: CStatic background color problem Pin
Coremn16-Feb-04 11:45
Coremn16-Feb-04 11:45 
GeneralRe: CStatic background color problem Pin
Prakash Nadar16-Feb-04 16:40
Prakash Nadar16-Feb-04 16:40 
GeneralSave Bitmap from Device Context to File Pin
Okeno Palmer15-Feb-04 17:14
Okeno Palmer15-Feb-04 17:14 
GeneralRe: Save Bitmap from Device Context to File Pin
Johann Gerell15-Feb-04 20:14
Johann Gerell15-Feb-04 20:14 
GeneralWeird toolbar behaviour Pin
Deian15-Feb-04 16:18
Deian15-Feb-04 16:18 
GeneralHelp...program passes input as 13... Pin
kfresh15-Feb-04 15:47
kfresh15-Feb-04 15:47 
GeneralRe: Help...program passes input as 13... Pin
Andrew Walker15-Feb-04 16:37
Andrew Walker15-Feb-04 16:37 
General.ico corruption and CVS Pin
Jon Sagara15-Feb-04 15:30
Jon Sagara15-Feb-04 15:30 
GeneralRe: .ico corruption and CVS Pin
Mike Dimmick16-Feb-04 2:42
Mike Dimmick16-Feb-04 2:42 
GeneralRe: .ico corruption and CVS Pin
Jon Sagara16-Feb-04 2:48
Jon Sagara16-Feb-04 2:48 
GeneralAddPicture Pin
Member 73893815-Feb-04 15:10
Member 73893815-Feb-04 15:10 
GeneralFree Unix OS download.. Pin
IrishSonic15-Feb-04 14:41
IrishSonic15-Feb-04 14:41 
GeneralRe: Free Unix OS download.. Pin
Maxwell Chen15-Feb-04 15:14
Maxwell Chen15-Feb-04 15:14 
GeneralRe: Free Unix OS download.. Pin
Anonymous15-Feb-04 19:37
Anonymous15-Feb-04 19:37 
GeneralRe: Free Unix OS download.. Pin
Okeno Palmer16-Feb-04 1:23
Okeno Palmer16-Feb-04 1:23 
GeneralRe: Free Unix OS download.. Pin
IrishSonic17-Feb-04 13:22
IrishSonic17-Feb-04 13:22 
GeneralA simple problem Pin
deniz79s15-Feb-04 6:10
deniz79s15-Feb-04 6:10 
GeneralRe: A simple problem Pin
Mike Dimmick16-Feb-04 2:59
Mike Dimmick16-Feb-04 2:59 
Managed C++, #using and Windows header macros don't mix too well. The file you've included has redefined GetObject to GetObjectA, so when you try to use Resources::GetObject, the preprocessor rewrites GetObject to GetObjectA, which doesn't exist.

The preprocessor is basically dumb.

The culprit appears to be WinGDI.h, which is included from Windows.h. It may seem odd to have two different entry points for GetObject, since it doesn't take any string parameters, but this controls whether calling GetObject on a font object handle returns a LOGFONTA or a LOGFONTW (and hence whether the lfFaceName string is ANSI or Unicode).

About all you can do is find the call to Resources::GetObject, and either ensure that it occurs before WinGDI.h is included (not practical) or use #undef to undefine GetObject.
GeneralMFC control and value variable conflict Pin
Dev57815-Feb-04 5:31
Dev57815-Feb-04 5:31 
GeneralRe: MFC control and value variable conflict Pin
Michael Dunn15-Feb-04 5:35
sitebuilderMichael Dunn15-Feb-04 5:35 
GeneralRe: MFC control and value variable conflict Pin
Prakash Nadar15-Feb-04 19:59
Prakash Nadar15-Feb-04 19:59 
GeneralRe: MFC control and value variable conflict Pin
jhwurmbach16-Feb-04 0:08
jhwurmbach16-Feb-04 0:08 
GeneralRe: MFC control and value variable conflict Pin
Prakash Nadar16-Feb-04 2:54
Prakash Nadar16-Feb-04 2:54 
GeneralRe: MFC control and value variable conflict Pin
jhwurmbach16-Feb-04 3:09
jhwurmbach16-Feb-04 3:09 

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.