For Programmers: Free Programming Magazines  


Home > Archive > Clipper > November 2006 > Newbie problems with xharbour









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Newbie problems with xharbour
jmilovic@gmail.com

2006-11-07, 6:55 pm

I installed xharbour and all other tools that is required.

My first hallo world app was bult. But now i am having problems porting
my old clipper app to xharb. I used hbmake to make my app. I linked all
my prg's but i use superlib. When i try to link this lib xharb gives me
errors, all function from superlib. How should i solve this problem. I
have source code of lib but there is some function's written in asm and
c. Any suggestions?

N:dlzc D:aol T:com \(dlzc\)

2006-11-07, 6:55 pm

Dear jmilovic:

<jmilovic@gmail.com> wrote in message
news:1162926416.991749.203070@k70g2000cwa.googlegroups.com...
....
> I linked all my prg's but i use superlib.


What functions do you use from this library? Perhaps you could
comment out the superlib library, and note the missing
functions...

Once you have a list, one could write wrapper functions with
those names, that acutally invoke existing xharbour functions.

David A. Smith


Klas Engwall

2006-11-07, 9:55 pm

jmilovic,

>I installed xharbour and all other tools that is required.
>
>My first hallo world app was bult. But now i am having problems porting
>my old clipper app to xharb. I used hbmake to make my app. I linked all
>my prg's but i use superlib. When i try to link this lib xharb gives me
>errors, all function from superlib. How should i solve this problem. I
>have source code of lib but there is some function's written in asm and
>c. Any suggestions?


1. xHarbour questions are best asked in the xHarbour newsgroups at
news.xharbour.org

2. 16 bit Clipper libraries cannot be linked with 32 bit xHarbour

3. Superlib has been discussed in the xHarbour newsgroups a number of
times over the years, and judging from those discussions the author
has refused to give permission for porting the library to xHarbour. So
there cannot be any official support for it. What you do in our own
projects may or may not be a different matter.

As far as I can see, out of over 200 source code modules only eight
are c or asm. One or two of those could quite easily be rewritten as
prg. The mouse functions should probably be replaced with existing
xHarbour mouse functions.

The average straightforward c code shouldn't be impossible to port,
especially since you can simplify the process by embedding it in prg
with #pragma begindump and #pragma enddump.

Learn from what other developers have done with other pieces of c code
in xHarbour (Download all the sources from CVS. And if you have a high
speed connection you could also download the whole news archive, over
50,000 messages, from the xHarbour news server to study old
discussions - I use those old messages every day) and apply that
knowledge to the remaining Superlib c files.

Finally, don't forget to investigate what alternatives there may
already be to some of the Superlib c and asm functions. Ask in the
xHarbour newsgroups what other developers have done to solve specific
problems. If your environment is Win32 there may also be WinAPI
functions that can be wrapped or have already been so in the what32
library or otherwise.

HTH,
Klas

-------
klas dot engwall at engwall dot com

http://www.engwall.com/clipper/

The LFN Library for Clipper
The LanMan Library for Clipper
The NFPAT1A Timeslice release patch for the Nanforum Toolkit
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com