Page 1 of 3

Is a compiled FIVEWIN/(x)HARBOUR program a C program?

Posted: Mon Jun 30, 2008 4:00 pm
by Otto
Sometimes I am asked in which language my program is written.
As FIVEWIN/(x)HARBOUR is compiled with a C-compiler is the result a C program?
Thanks in advance,
Otto

Re: Is a compiled FIVEWIN/(x)HARBOUR program a C program?

Posted: Mon Jun 30, 2008 4:18 pm
by Enrico Maria Giordano
Otto wrote:Sometimes I am asked in which language my program is written.
xHarbour that is derived from Clipper that is derived from dBase III. :-)
Otto wrote:As FIVEWIN/(x)HARBOUR is compiled with a C-compiler is the result a C program?
Yes, but you can't say that your program is written in C.

EMG

Posted: Mon Jun 30, 2008 4:24 pm
by Otto
Thank you, Enrico.
Can I say it is a C-program?
Regards,
Otto

Posted: Mon Jun 30, 2008 5:16 pm
by Patrick Mast
Otto wrote:Can I say it is a C-program?Otto
It's a C-programme where execution of your code is done in by a VM (Virtual Machine) that's embeded in your exe.

The resulting EXE *IS* build by a C-compiler, so..

If users ask me in what my application is written, I say "xHarbour". And than the questions begin ;-)

Patrick

Posted: Mon Jun 30, 2008 5:28 pm
by Otto
Hello Patrik,

It would be fine if I could say it is a C-program.
So these questions would not appear.

Regards,
Otto

Posted: Mon Jun 30, 2008 5:47 pm
by Antonio Linares
Otto,

You could say that a C/C++ compiler (plus some other tools) is used to build it :-)

And you are saying the truth :-)

Posted: Mon Jun 30, 2008 5:59 pm
by Otto
To all,

Thank you for your answers.

If I look into the Exe I only see ë ‹]Borland C++.
Could someone else see the other tools if he would try?

Regards,
Otto

Posted: Mon Jun 30, 2008 6:11 pm
by Patrick Mast
Otto wrote:If I look into the Exe I only see ë ‹]Borland C++.
Could someone else see the other tools if he would try?
Yes, I can see if you used Harbour or xHarbour, and what version it was. I can see what LIB's you used etc.. If you don't want this to be seen by anyone, use UPX or any other too that compresses your exe.

I use UPX all the time and it works just fine for me. Never had a problem.
And its free! ;-)
http://upx.sourceforge.net/

Patrick

Posted: Mon Jun 30, 2008 9:51 pm
by Detlef Hoefner
Otto,

why do you think that you should be ashamed when using (x)Harbour as your development language?

Do you want to hide the fakt that you are using a modern programming language? Do you also want to rename and encrypt your dbf files so that other people think you are using SQL databases?

A good designed and skilful programmed application speaks for itself.
There are too many bad programs outside which are written in 'state of the arts' languages.

Lets release excellent programs which kill the customers prejudices against (x)Harbour.

Just my 2cents,
Detlef

Posted: Tue Jul 01, 2008 7:48 am
by Marc Vanzegbroeck
Patrick,

I just tested UPX, and it's working fine.
With the option -d, you can decompress the file again. So can see the lib's used again. I could find a password option, or am I wrong?

Best regards,
Marc

Posted: Tue Jul 01, 2008 8:17 am
by byte-one
For the Harbour-Compiler are the option to produce pure C-Output. (gc3) I found, the programs builded with this option, runs up to 20% more in speed!

Posted: Tue Jul 01, 2008 10:30 am
by MOISES
Hi,

See http://www.fivetechsoft.com/forums/view ... hp?t=11656

But UPX not always works fine.

Posted: Tue Jul 01, 2008 12:17 pm
by Otto
Hello Günther,

thank you for the information.
Could you please post some more infos.
Thanks in advance
Otto

Posted: Tue Jul 01, 2008 2:25 pm
by byte-one
Otto, you can in Harbour-compile-options add or replace this to: /gc3
Please call harbour.exe without any parameters to show the options.

Posted: Tue Jul 01, 2008 2:55 pm
by Otto
Hello Günther,
Thank you. I will try and report.
Do you know if this option is in xHarbour, too.
It sounds promising.

Regards,
Otto