Page 1 of 1

Code for FiveWin IFDEF ?

Posted: Fri Nov 01, 2019 6:38 am
by Jimmy
hi,

in my Source i have

Code: Select all

    #ifdef __CLIPPER__
   #ifdef __XPP__
   #ifdef __HARBOUR__ 
now while trying different IDE and Environment i like to ask if FiveWin have something like this :?:

i found

Code: Select all

    #ifdef FWPLUS
   #ifdef REVD1801
   #ifdef REVN1807
   #ifdef UPTO_FWH1105
but nothing with __FW__ :(

p.s. does Fivewin Code run under __XPP__ :?

Re: Code for FiveWin IFDEF ?

Posted: Mon Nov 04, 2019 12:01 pm
by AntoninoP
you can do ifdef with any define in fivewin.ch

Code: Select all

#ifdef _FIVEWIN_CH
#ifdef FWCOPYRIGHT
#ifdef FW_VersionNo
#ifdef FWVERSION
#ifdef FWDESCRIPTION
in our code we had some problem when they retired WndReadPalBmpEx so in our code we have:

Code: Select all

#if FW_VersionNo >= 18010
    nImage := FW_ReadImage( Self, cImage )[1]
#else
    nImage := WndReadPalBmpEx( Self, cImage )[1]
#endif