FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Code for FiveWin IFDEF ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Code for FiveWin IFDEF ?
Posted: Fri Nov 01, 2019 06:38 AM
hi,

in my Source i have
Code (fw): Select all Collapse
    #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 (fw): Select all Collapse
    #ifdef FWPLUS
   #ifdef REVD1801
   #ifdef REVN1807
   #ifdef UPTO_FWH1105

but nothing with __FW__ :-)

p.s. does Fivewin Code run under __XPP__ :-)
greeting,

Jimmy
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM
Re: Code for FiveWin IFDEF ?
Posted: Mon Nov 04, 2019 12:01 PM
you can do ifdef with any define in fivewin.ch
Code (fw): Select all Collapse
#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 (fw): Select all Collapse
#if FW_VersionNo >= 18010
    nImage := FW_ReadImage( Self, cImage )[1]
#else
    nImage := WndReadPalBmpEx( Self, cImage )[1]
#endif

Continue the discussion