Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: MFC control and value variable conflict Pin
David Crow16-Feb-04 3:01
David Crow16-Feb-04 3:01 
Generaltrying to get the size of a file Pin
clayman8715-Feb-04 5:11
clayman8715-Feb-04 5:11 
GeneralRe: trying to get the size of a file Pin
Tim Smith15-Feb-04 5:19
Tim Smith15-Feb-04 5:19 
GeneralRe: trying to get the size of a file Pin
Michael P Butler15-Feb-04 10:03
Michael P Butler15-Feb-04 10:03 
GeneralRe: trying to get the size of a file Pin
Joe Woodbury15-Feb-04 19:23
professionalJoe Woodbury15-Feb-04 19:23 
GeneralThx Pin
clayman8716-Feb-04 2:23
clayman8716-Feb-04 2:23 
Generalthe way of the virus [OT] Pin
Anonymous15-Feb-04 3:54
Anonymous15-Feb-04 3:54 
GeneralRe: the way of the virus [OT] Pin
Michael Dunn15-Feb-04 5:34
sitebuilderMichael Dunn15-Feb-04 5:34 
GeneralRe: the way of the virus [OT] Pin
Prakash Nadar15-Feb-04 16:59
Prakash Nadar15-Feb-04 16:59 
GeneralRe: the way of the virus [OT] Pin
David Crow16-Feb-04 3:06
David Crow16-Feb-04 3:06 
QuestionI want to use vc or vb to insert a picture into the word document at a given screen point. how to do? Pin
cuixiutao15-Feb-04 3:43
cuixiutao15-Feb-04 3:43 

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.