Re: Confusing #ifdef
- From: "AliR" <AliR@xxxxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 11:09:22 -0600
It's used so that when the compiler is doing it's job it will only compile
that header file once.
You can change that define to what every you want it to be, as long as you
don't use the save value in anyother header file in your project.
What Visual studio does is that they try to make it as unique as possible by
using all those numbers (look like a UUID).
Anyway, I am not sure if VC++ 6.0 compiler handles this or not. but you
might be able to get rid of the entire #ifdef #define thing and use
#pragma once
at the top of the h file.
AliR.
"AVee" <AVee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D769F2C5-48E4-4065-B640-67A51A4F7C40@xxxxxxxxxxxxxxxx
VC6 inserts a legnthy, apparently encoded #ifdef in the Application,Document
and View class header files. My questions:
1) What is this used for? and
2) What effect is might there be in removing it?
.
- Follow-Ups:
- Re: Confusing #ifdef
- From: Ajay Kalra
- Re: Confusing #ifdef
- Prev by Date: Re: embed an MDI menu in a Dialog based
- Next by Date: CButton Message Handler Weirdness
- Previous by thread: Re: Confusing #ifdef
- Next by thread: Re: Confusing #ifdef
- Index(es):
Relevant Pages
|