preprocessor

From: <- Chameleon -> (cham_gss_at_hotmail.NOSPAM.com)
Date: 02/28/04


Date: Sat, 28 Feb 2004 03:55:05 +0200

I have a preprocessor constant (SUPPORT_PNG_IMAGE) with 3 states, to control the compilation:
---------
#undef SUPPORT_PNG_IMAGE
#define SUPPORT_PNG_IMAGE
#define SUPPORT_PNG_IMAGE ONLY
---------
With the 1st & 3rd line the following line works
---------
#if SUPPORT_PNG_IMAGE == ONLY
---------
but with the 2nd, compiler throws:
---------
fatal error C1017: invalid integer constant expression
---------

how can I handle this?

thanks



Relevant Pages

  • Re: AppActivate + pid
    ... > I'm using a fast and versatile script interpreter with compilation ... > I'm trying to mix the WSH AppActivate method with some win32 api ... here is the control ID of a notepad's Edit class: ...
    (microsoft.public.scripting.wsh)
  • SV: SV: Why cant i put two controls in the same directory*?
    ... Something about the control being declared in web.config and living in the same area ... compilation model the source code contains in the whole directory is compiled in multiple assemblies. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to inherit LinkLabel control
    ... control from within another project. ... > The code you posted has some compilation issues. ... > Public Sub New ... > Public Property HoverColor() As Color ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Ambiiguous in Namespace PROBLEM...
    ... During Compilation ... ... Error Window Appeared ... ... this project was working fine...I added a new custom control to ... but just a message box saying you can not do that while I am compiling. ...
    (microsoft.public.vsnet.ide)
  • Re: Run-time error 2424
    ... The one control in which we are retrieving the value from is a combo box ... > but the Value property is the default property of an Access form control. ... >> failed during the compilation process), and compacted and repaired the DB. ... >> error message saying that the control doesn't have focus. ...
    (microsoft.public.access.formscoding)