Click here to Skip to main content
16,011,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Print a bitmap at a specified X-Y position Pin
ShilpaPotnis11-Oct-07 5:49
ShilpaPotnis11-Oct-07 5:49 
GeneralRe: Print a bitmap at a specified X-Y position Pin
chandu00411-Oct-07 7:21
chandu00411-Oct-07 7:21 
GeneralRe: Print a bitmap at a specified X-Y position Pin
ShilpaPotnis11-Oct-07 8:15
ShilpaPotnis11-Oct-07 8:15 
GeneralRe: Print a bitmap at a specified X-Y position Pin
ShilpaPotnis11-Oct-07 8:24
ShilpaPotnis11-Oct-07 8:24 
AnswerRe: Print a bitmap at a specified X-Y position Pin
Mark Salsbery11-Oct-07 12:30
Mark Salsbery11-Oct-07 12:30 
GeneralRe: Print a bitmap at a specified X-Y position Pin
ShilpaPotnis12-Oct-07 4:59
ShilpaPotnis12-Oct-07 4:59 
Questionwhen do we need to define INC_OLE2? Pin
George_George11-Oct-07 4:01
George_George11-Oct-07 4:01 
AnswerRe: when do we need to define INC_OLE2? Pin
Mike Dimmick11-Oct-07 9:30
Mike Dimmick11-Oct-07 9:30 
It governs whether ole2.h is included when you #include windows.h. If you include ole2.h yourself you don't need this define.

Also, if NOGDI is not set and INC_OLE1 is not set, ole2.h is included, regardless of the setting of INC_OLE2, if WIN32_LEAN_AND_MEAN is also not defined.

A few other Windows headers will set INC_OLE2 before including windows.h themselves; whether this has an effect will depend on the order you include the headers, if you do so yourself.

The Windows headers are highly configurable and that configuration is barely documented and very complicated. I generally don't bother defining any configuration options and include windows.h, unless I'm using ATL or MFC in which case I'll include MFC or ATL headers as appropriate.

The aim is to reduce compile times by omitting unused features. However, if you're using precompiled headers it will generally only reduce the time to compile the PCH file.


DoEvents: Generating unexpected recursion since 1991

GeneralRe: when do we need to define INC_OLE2? Pin
George_George11-Oct-07 18:04
George_George11-Oct-07 18:04 
GeneralRe: when do we need to define INC_OLE2? Pin
Mike Dimmick12-Oct-07 9:13
Mike Dimmick12-Oct-07 9:13 
GeneralRe: when do we need to define INC_OLE2? Pin
George_George13-Oct-07 4:03
George_George13-Oct-07 4:03 
Question16 color to black and white Pin
sanjutvm11-Oct-07 4:01
sanjutvm11-Oct-07 4:01 
AnswerRe: 16 color to black and white Pin
ThatsAlok11-Oct-07 4:10
ThatsAlok11-Oct-07 4:10 
AnswerRe: 16 color to black and white Pin
Mark Salsbery11-Oct-07 12:33
Mark Salsbery11-Oct-07 12:33 
QuestionMFC + Windows Embedded Xp [modified] Pin
bankai12311-Oct-07 3:42
bankai12311-Oct-07 3:42 
AnswerRe: MFC + Windows Embedded Xp Pin
JudyL_MD11-Oct-07 4:57
JudyL_MD11-Oct-07 4:57 
GeneralRe: MFC + Windows Embedded Xp Pin
bankai12311-Oct-07 5:00
bankai12311-Oct-07 5:00 
QuestionAny alternative for IsBadReadPtr / IsBadWritePtr Pin
sw@thi11-Oct-07 3:03
sw@thi11-Oct-07 3:03 
AnswerRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Cedric Moonen11-Oct-07 3:25
Cedric Moonen11-Oct-07 3:25 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
sw@thi11-Oct-07 20:12
sw@thi11-Oct-07 20:12 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
JudyL_MD12-Oct-07 3:19
JudyL_MD12-Oct-07 3:19 
AnswerRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Matthew Faithfull11-Oct-07 3:32
Matthew Faithfull11-Oct-07 3:32 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Stephen Hewitt11-Oct-07 17:58
Stephen Hewitt11-Oct-07 17:58 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Matthew Faithfull11-Oct-07 23:22
Matthew Faithfull11-Oct-07 23:22 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Stephen Hewitt14-Oct-07 14:55
Stephen Hewitt14-Oct-07 14:55 

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.