compilare harbour-clipper sorgenti

Forum dedicato ai programmatori di X# in lingua italiana – Italian language forum

Moderator: wriedmann

User avatar
wriedmann
Posts: 3700
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

compilare harbour-clipper sorgenti

Post by wriedmann »

Hi Chris,
I knew you have done some work, but never knew how usable it was.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Boerig
Posts: 8
Joined: Mon May 29, 2017 3:15 pm

compilare harbour-clipper sorgenti

Post by Boerig »

Wolfang, scusate il ritardo ma ho avuto problemi. Si piu' o meno capisco il discorso dei dialetti e capisco anche che la parte relativa all'interfaccia non sia supportata: non ha senso al giorno d'oggi. Il mio, come detto, era solo un esperimento per testare il compilatore, null'altro. Non ho intenzione di rilasciare il programma che stavo testando, anche perche' e' vecchio e non piu' in uso. Era solo un test.
Faro' come hai suggerito: provero' a creare delle windows forms e dentro ci mettero' la logica in harbour (che e' un superset di clipper in fin dei conti). Sarebbe interessante sapere quali comani-funzioni sono supportati in ogni dialetto, cosi' da sapere se utilizzare da subito la sintassi xSharp o arrivarci gradatamente.
Boerig
Posts: 8
Joined: Mon May 29, 2017 3:15 pm

compilare harbour-clipper sorgenti

Post by Boerig »

Hi Chris, I'm late, I'm sorry.
This app is only for testing xsharp. It's a very old one and I'm not interested in porting in windows. I've to write from scratch a new app for a friend of mine that has an old app written in VbNet. The original developer has retired and his app needs to be updated. So I've to write a brand new app..... without knowing (or knowing a very little bit) of forms, events, namespaces, types....etc. I've tried to learning by example re-compiling this very old app of mine, only to check step-by-step how to do "things" in XSharp.
But I've also have one app that is elegible for a porting in windows. Next week I'll zip everything and I'll send to you (I need your email address, I suppose)
Thank you
User avatar
Chris
Posts: 4725
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

compilare harbour-clipper sorgenti

Post by Chris »

Hi Boerig,

It would be very helpful if you can send also this very old app. Unfortunately we have very few Harbour test cases that we can be testing against, so right now we are not sure how much is the compiler and our runtime libraries compatible enough with harbour. I'd really like to give them a test with your code and who knows, maybe it will turn out to be easy to port it. It could also prove to be very difficult, but we will not know if we do not try...

My email is in my signature, chris@ xsharp(dot)eu
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3700
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

compilare harbour-clipper sorgenti

Post by wriedmann »

Ciao Marc (almeno questo è il nome che vedo sul profilo),
per capire meglio la funzionalità che la runtime ha, devi capire la storia.
X# è nato da VO, e supporta la quasi totalità delle funzioni di VO.
VO da parte sua è nata da Clipper, e supporto quasi tutte le funzioni di Clipper con eccezione della scrittura su schermo e stampante, con molte aggiunte. Inoltre VO ha messo a dispozisione molte funzioni del Windows API.
Per vedere le funzioni che X# porta con se: in XIDE sotto "Help", "X#" e "X# Help File" trovi tutto.
Le funzioni in particolare le trovi sotto "X# Runtime and VO SDK Reference" nelle sezioni "#X.Core", "X#.RT", "X#.RDD", "X#.VO" e, riguardante VFP, "X#.VFP",

Devo poi aggiungere che X# cresce con gli utenti, soprattutto quelli che pagano l'abonnamento (il team di sviluppo deve pur mangiare <g>). Visto che la maggior parte degli utenti paganti è interessato a VO, questo ambiente è anche il più coperto. Poi esiste una grossa parte di programmatori proventienti da VFP, ed è questo l'ambiente sul quale attualmente si lavora di più.

Sicuramente nel momento in cui arrivano richieste anche dall'ambito Harbour anche questo troverà più rilievo (regolarmente il team chiede agli utenti paganti in quale direzione vogliano che si sviluppi il progetto).

Se hai altre domande, non esitare a chiedere!

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Boerig
Posts: 8
Joined: Mon May 29, 2017 3:15 pm

compilare harbour-clipper sorgenti

Post by Boerig »

ciao Wolfang,
cio' che dici e' molto chiaro: in sostanza la quasi totalita' dei comandi xbase (ad eccezione dei comandi interfaccia utente e stampa) sono supportati. E questo perche' ereditati da VO che a sua volta li ha mantenuti x compatibilita' con Clipper. Bene.
Devo lavorarci su
Ciao,
Marco
User avatar
wriedmann
Posts: 3700
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

compilare harbour-clipper sorgenti

Post by wriedmann »

Ciao Marco,
comunque X# ha ereditato da Clipper un potentissimo preprocessore che anche in Clipper ha tradotto i commandi tradizionali in chiamate di funzioni (se ti ricordi i file PPO di Clipper).
Se c'è qualcosa che non funziona chiedi semplicemente - abbiamo qui dei maghi di preprocessore.

Personalmente ho iniziato a lavorare con X# molto prima che la runtime era pronta e non me ne sono pentito - ad oggi passo circa metà del mio tempo in X#, e l'altra in VO, sperando che VO diventi sempre meno e X# sempre di più.
Saluti
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 4725
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

compilare harbour-clipper sorgenti

Post by Chris »

Guys, in so many earlier previous posts I am trying to tell you that also screen printing IS supported! Screen commands are precprocessor commands, and as such, they ARE supported. What I am not completely sure is how well, they are supported, what we know is that a couple harbour apps we have tested with worked fine, but can't be sure about others without trying. For this reason, Marco if that's ok with you, please send me the app to give it a try.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Boerig
Posts: 8
Joined: Mon May 29, 2017 3:15 pm

compilare harbour-clipper sorgenti

Post by Boerig »

Hi Chris,
I apologize, I didn't understood that screen commands were supported. I thought that you and the rest of XSharp team had built a tool to porting xbase console app in winforms (or wpf or whatever Microsoft calls a frame for data entry) and that it was for your internal use.
Let me pack my sources and I will send you (next week I think, because this weekend I have to fight with a little php web application)
Marco
User avatar
Chris
Posts: 4725
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

compilare harbour-clipper sorgenti

Post by Chris »

Hi Marco,

We have done a lot of work on this area for a customer, we experimented with translating screen commands to either console output, or even winforms (not WPF) and this is happening at runtime, with zero changes to the existing code. We also implemented a way to make it easy for the developer to design a nicely looking window for each screen in winforms and then let the runtime automatically map it to the original code which still has full control over it (unchanged).

This all was working very nicely, but it was written with a very specific harbour app in mind, unfortunately we did not have the opportunity till now to test it against another app. This is why I am excited to hear about your app, maybe it's a perfect opportunity to revive this experimental runtime and see if it is usable in general and if it's possibly a viable solution for other harbour projects in the future as well.

No hurry about sending it, please do that whenever you get the chance. Also no promises that we can indeed make this work, but it is very possible and certainly worth a try!
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply