FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Migrating to Harbour
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Thu Dec 18, 2014 06:06 AM
James,

I already coded some prototypes and they worked fine for Android and iOS:

http://code.google.com/p/fivedroid/wiki/Index

http://code.google.com/p/fivephone/w/list

Sadly imageshack guys lost many images that I posted there. Thats why now I store these forums images in bitbucket :-)

https://bitbucket.org/fivetech/screenshots/downloads

Both concepts worked fine. My idea now is to take both concepts further and make them compatible, so the same code on Android should work on iOS and viceversa.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Thu Dec 18, 2014 10:56 AM
Antonio,

Antonio Linares wrote:Enrico,

yes, you can do similar things using HRB files, but imagine that you want to create them from a tablet. Thats impossible, unless you have harbour.exe in the tablet. Of course, you can email them, download them, etc.

But there is no way to create them in the tablet without harbour.exe unless you use hbclpr.lib :-)


Crystal clear, thank you.

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Thu Dec 18, 2014 11:03 AM
Antonio,

Antonio Linares wrote:My idea now is to take both concepts further and make them compatible, so the same code on Android should work on iOS and viceversa.


We all are looking forward to your progress! Keep up the good work! :-)

There's no doubt that you are years beyond me...

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Thu Dec 18, 2014 01:49 PM

Enrico,

I have already reviewed Visual Studio Community and now I am focused on Android Studio.

Xamarin code, used in VSC, is very restrictive and there are expenses licences to pay, etc.

So it seems to me as we will go the Android Studio way :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Migrating to Harbour
Posted: Thu Dec 18, 2014 03:07 PM
Antonio,


So it seems to me as we will go the Android Studio way


Good to hear, I have been thinking about getting started learning Android Studio, now I have even more incentive.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Sat Dec 20, 2014 09:30 AM
One more problem:

Code (fw): Select all Collapse
FUNCTION MAIN()

    LOCAL cVar := "1 | 2"

    ? &( cVar )

    INKEY( 0 )

    RETURN NIL


Code (fw): Select all Collapse
Error BASE/1449  Syntax error: &


:-)

EMG
Posts: 85
Joined: Wed Nov 19, 2014 01:04 PM
Re: Migrating to Harbour
Posted: Sat Dec 20, 2014 02:34 PM
Dear Emg

Please find working sample. Changed "|" to "/"

Code (fw): Select all Collapse
#include "fivewin.ch"
FUNCTION MAIN()
LOCAL cVar := " 1 / 2 "        //  ?" 1 | 2 "
      ? &( cVar )
RETURN NIL


Regards
Regards

Yunus



FWH 21.02
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Sat Dec 20, 2014 03:14 PM

Thank you, but I need logical bit operator |.

EMG

Posts: 85
Joined: Wed Nov 19, 2014 01:04 PM
Re: Migrating to Harbour
Posted: Sat Dec 20, 2014 04:06 PM
Hope this will work

Code (fw): Select all Collapse
#include "fivewin.ch"
FUNCTION MAIN()
  local cvar:="hb_bitor(1,2)"
  ?&(cvar)
RETURN NIL


Regards
Regards

Yunus



FWH 21.02
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Sat Dec 20, 2014 04:11 PM

Sorry, but I need exactly " 1 | 2 ". Otherwise I'd have to change my code and I don't want to do that.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Sat Dec 20, 2014 08:25 PM

Enrico,

Maybe using the preprocessor ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Sat Dec 20, 2014 09:58 PM

Antonio,

I still can't see the light at the end of the tunnel. There are other problems after the one I reported. I'm discouraged... :-(

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Sat Dec 20, 2014 10:05 PM
Antonio,

Antonio Linares wrote:Maybe using the preprocessor ?


Anyway, what are you suggesting exactly? How can we change

Code (fw): Select all Collapse
"1 | 2"


to something else using the preprocessor? I'm lost...

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Sat Dec 20, 2014 10:11 PM

Enrico,

I really don't know if that would be possible, it was just a quick idea :-)

Maybe:

define hb_bitor(x|y) hb_bitor(x,y)

Surely it may error, but who knows... :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM