converting a dbase/clipper program

Asked by Wayne King

I know that clipper and dbase were dos programming, but that is when I wrote a point of sale program that I am still using in a window of xp.... but how do I get it to ubuntu?

I tried looking at libxbase and some of that stuff, but got nowhere.

I understand that there are programs readily available that can convert my dbase files to work in ubuntu, but what do I look at them with.

That is probably enough detail from a beginner at ubuntu that kind of quit when windows came along

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu harbour Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
houstonbofh (leesharp) said :
#1

You might be able to actually run them in WINE. They are old enough to be supported. Once you install WINE, running "wine cmd" will give you that familiar DOS shell.

Revision history for this message
Wayne King (awayneking-gmail) said :
#2

Thanks... but I guess it will need a rewrite in clipper before I can use wine. I does actually access the exe file, but since I cannot access the .bat file, It only does a flash to let me know it found it. the info in the bat file is not there.

Revision history for this message
Luky Winarto (luckyborneo) said :
#3

Hello Wayne King,

How about dosemu - The Linux DOS Emulator
Just type this command from your terminal (Applications > Accessories > Terminal):

sudo apt-get install dosemu

I'm using this applications to develop accounting program based on Foxpro 2.6
Have a nice ty...

Revision history for this message
houstonbofh (leesharp) said :
#4

This actually sounds like a pathing problem, not a emulation problem. Paths in WINE can see a bit odd... Try "wine explorer" and look around.

Also, dosemu may be a solution as well. Stable and mature.

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#5

Please tell do you have the source code... ?
if you have source code you can recompile it using Harbour http://www.harbour-project.org/
and you will generate the binary recompiling , the sources,

You can compile your .prg sources with harbour on:

MS-DOS,
Windows (32 & 64),
Windows CE,
Pocket PC,
OS/2,
GNU/Linux,
Mac OSX.

to install harbour download the .deb file from here:
http://sourceforge.net/projects/harbour-project/files/binaries-linux-ubuntu/2.0.0/

then install it with this terminal command:
sudo apt-get install harbour_2.0.0-1_i386.deb

You can also use Harbour to create in very short time applications (Linux and Windows) using Qt library

Here a tutorial with a lot of ready to compile and run examples
http://www.gruppoeratostene.com/harbour/harbour-tutorials.htm

-------------------
Harbour help

User group: http://groups.google.com/group/harbour-users

Devel group: http://groups.google.com/group/harbour-devel

Revision history for this message
Wayne King (awayneking-gmail) said :
#6

Thanks marcobra (Marco Braida), that solved my question.

Revision history for this message
Wayne King (awayneking-gmail) said :
#7

I am always in awe with the quickness and responsiveness of this community. I shall be spending some time trying all methods suggested and shall report back in some time with my success.

Thanks to all of you with your knowing ideas.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#8

Please feel free to ask any question you have using/compiling your sources with harbour by register yourself into

User group: http://groups.google.com/group/harbour-users

Happy Clipper/harbour coding... from an Harbour users...

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#9

Reading your question
http://groups.google.com/group/harbour-users/browse_thread/thread/328b7b936f8d0716

To check your harbour installation please simply open a terminal and type:

harbour -build

you will get the answer from the compiler... something like this ( i use the develop builds) :

Harbour 2.1.0rc2 (Rev. 16586)
Copyright (c) 1999-2011, http://harbour-project.org/

Harbour Build Info
---------------------------
Version: Harbour 2.1.0rc2 (Rev. 16586)
Compiler: GNU C 4.5.2 (32-bit)
Platform: Linux 2.6.38-8-generic i686
PCode version: 0.3
ChangeLog last entry: 2011-04-13 22:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
ChangeLog ID: ChangeLog 16586 2011-04-13 20:34:13Z vszakats
Built on: Apr 13 2011 22:48:31
Extra C compiler options: -DHB_FM_STATISTICS
Build options: (memory tracking) (Clipper 5.3b) (Clipper 5.x undoc)

Then please try to compile your first test program, still from terminal type:
mkdir harbour_test
cd harbour_test
gedit test.prg

Select the text below from here and paste into file:

function main()
do while .t.
   setcolor("w/n")
   clear screen
   dummy:="N"
   quadro(1,1,10,60)
   @ 3,3 say "Hello world" color "w/r"
   @ 4,3 say "From harbour ;-)" color "w/b"
   @ 5,3 say "Do you want exit... ? "
   @ row(), col()+1 get dummy picture "@K!"
   read
   if dummy=="S"
      clear screen
      quit
   endif
   @ 8,10 say "Ok you do not want exit"
   inkey(2)
enddo
return nil

// -----------------------------
function quadro(ri,ci,rf,cf)
@ ri,ci clear to rf,cf
dispbox(ri,ci,rf,cf)
return nil

Then to compile (and run) type:

hbmk2 test -run

Revision history for this message
Wayne King (awayneking-gmail) said :
#10

A sample to try. I wish I was at home now, but at work I have to use windows and my clipper program
thanks.. I shall try this evening

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#11

Ok but remember:

Harbour is a cross-platform compiler and is known to compile and run on MS-DOS, Windows (32 & 64), Windows CE, Pocket PC, OS/2, GNU/Linux and Mac OSX.

So, you can also install harbour compiler on Win (install as usual) and try it...

http://sourceforge.net/projects/harbour-project/files/

Then the same prg will be compiled with Harbour on Linux...

As your reference, Harbour is made to be fully comapatible with Clipper 5.3

Revision history for this message
donal zhu (donal-zhu) said :
#12

hi,
I am used to DOS + clipper + dbase environment, now I am using Ubuntu and liking it.

is there a linux-harbour equivalent for RMAKE and BLINKER in ubuntu?

Thanks

Donal

Revision history for this message
mbelgrano (mbelgrano) said :
#13

is hbmk2
that from a prg give you a binary executable

http://harbourlanguage.blogspot.com/2010/02/using-hbmk2.html

2011/11/5 donal zhu <email address hidden>

> Question #152470 on harbour in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/harbour/+question/152470
>
> donal zhu posted a new comment:
> hi,
> I am used to DOS + clipper + dbase environment, now I am using Ubuntu and
> liking it.
>
> is there a linux-harbour equivalent for RMAKE and BLINKER in ubuntu?
>
> Thanks
>
> Donal
>
> --
> You received this question notification because you are a member of
> Harbour users, which is an answer contact for harbour in Ubuntu.
>

--
Massimo Belgrano

Revision history for this message
donal zhu (donal-zhu) said :
#14

cheers