Code for FiveWin IFDEF ?

Code for FiveWin IFDEF ?

Postby Jimmy » Fri Nov 01, 2019 6:38 am

hi,

in my Source i have
Code: Select all  Expand view  RUN
   #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  Expand view  RUN
   #ifdef FWPLUS
   #ifdef REVD1801
   #ifdef REVN1807
   #ifdef UPTO_FWH1105

but nothing with __FW__ :(

p.s. does Fivewin Code run under __XPP__ :?
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1733
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Code for FiveWin IFDEF ?

Postby AntoninoP » Mon Nov 04, 2019 12:01 pm

you can do ifdef with any define in fivewin.ch
Code: Select all  Expand view  RUN
#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  Expand view  RUN
#if FW_VersionNo >= 18010
    nImage := FW_ReadImage( Self, cImage )[1]
#else
    nImage := WndReadPalBmpEx( Self, cImage )[1]
#endif
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 45 guests