Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DBU for CDX

50 views
Skip to first unread message

Geoff Barnard

unread,
Aug 28, 2002, 10:11:30 AM8/28/02
to
I've just tried to recompile DBU with the 5.2 CDX driver, but it gives
an error on the link stage. Cannot seem to find a way around this,
anyway, I don't seem to have the 5.2e version of the DBFCDX driver
that is recommended.

Has anyone got a CDX version of DBU already compiled.

The error I get by the way (using BLINKER) is that __sxDoError is an
unresolved function within the DBFCDX.LIB module - is there any way
around that?

Geoff Barnard

Stephen Quinn

unread,
Aug 28, 2002, 9:22:24 PM8/28/02
to
Geoff

All I did was add
LIB DBFCDX

to the dbu.lnk file

and
request dbfcdx

to the dbu.prg

and do
rmake dbu.rmk

I didn't get the error you seem to have.
Clipper 5.2e
Blinker 5.1

--
HTH
Steve Quinn
http://www.tuxedo.org/~esr/faqs/smart-questions.html
'I want to move to Theory...Everything works in Theory'


Jules Alberts

unread,
Aug 29, 2002, 4:40:10 AM8/29/02
to
In article <akjtu7$1iqut0$1...@ID-88745.news.dfncis.de>, Stephen Quinn wrote:
> Geoff
>
> All I did was add
> LIB DBFCDX

Better add _dbfcdx.lib as well

> to the dbu.lnk file
>
> and
> request dbfcdx

+ rddsetdefault("dbfcdx")

> to the dbu.prg
>
> and do
> rmake dbu.rmk
>
> I didn't get the error you seem to have.
> Clipper 5.2e
> Blinker 5.1

There's an error when modifying the structure of a file with memo's.
Somewhere in dbustru.prg the extension ".dbt" is hardcoded. This
should be changed to ".fpt" (or be dynamically generated).

--
Jules Alberts
[the email address is for spambots only]

@ccwn.org Götz Strehl

unread,
Aug 29, 2002, 5:06:35 AM8/29/02
to
What is the difference between dcfcdx and _dbfcdx.lib?
is it neccessary to link in both?

Götz

"Jules Alberts" <ro...@localhost.localdomain> schrieb im Newsbeitrag
news:slrnamrmu...@cuci.nl...

Jules Alberts

unread,
Aug 29, 2002, 6:10:17 AM8/29/02
to
In article <akko28$1icicl$1...@ID-126308.news.dfncis.de>, Götz Strehl
wrote:

> What is the difference between dcfcdx and _dbfcdx.lib? is it
> neccessary to link in both?

One does support for indexes (CDX) the other one for memofiles (FPT).
I don't remember which one is which, I just link in the both of them.

Thomas Braun

unread,
Aug 29, 2002, 8:20:12 AM8/29/02
to
Jules Alberts wrote:

> One does support for indexes (CDX) the other one for memofiles (FPT).
> I don't remember which one is which, I just link in the both of them.

I'm not 100% sure if this applies for 5.2 also. But this is a qoute from
the 5.3 readme:

LIB Directory
-------------
DBFCDX.LIB, _DBFCDX.LIB
These two libraries are known as the FoxPro Replaceable Data Driver.
You cannot use one without the other -- they both must be linked into your
application in order to use CDX indexes. In addition, if you are using
these two libraries, there is no need to include DBFMEMO.LIB as that
library's functionality is included in _DBFCDX.LIB.

HTH
Thomas Braun

Ian Kennedy

unread,
Aug 29, 2002, 8:50:43 AM8/29/02
to
Jules Alberts wrote:
> In article <akko28$1icicl$1...@ID-126308.news.dfncis.de>, Götz Strehl
> wrote:
>
>>What is the difference between dcfcdx and _dbfcdx.lib? is it
>>neccessary to link in both?
>
>
> One does support for indexes (CDX) the other one for memofiles (FPT).
> I don't remember which one is which, I just link in the both of them.
>

The DBFCDX file gives support for CDX files as long as they don't
have Memo fields in them. If you wish to support/open files with
memos you will need to link *BOTH* files into the application.
Since you want to make a DBU application I would recoment linking
both into the app..
HTH
Ian

Stephen Quinn

unread,
Aug 29, 2002, 1:36:28 PM8/29/02
to
Jules

> Better add _dbfcdx.lib as well

Why - it's implictly linked in.

Try it with this short program
-------------------------------------
// x.prg
function main()

request dbfcdx
rddsetdefault( 'dbfcdx')
field x1
dbcreate('xyz', {{'x1','c',5,0},{'x2','m',10,0}})
use 'xyz' alias aaa
index on x1 tag 'fred'
dbappend()
aaa->x1 := '12345'
aaa->x2 := replicate('az',10)
close

return nil
-------------------------------------
clipper x /w/m/n
blinker fi x li dbfcdx

> + rddsetdefault("dbfcdx")
Only if you want that to be the default
- all I was doing was seeing if I got the same error or not.

Ian Kennedy

unread,
Aug 30, 2002, 4:45:01 AM8/30/02
to
Thomas Braun wrote:
> Jules Alberts wrote:
>
>
>>One does support for indexes (CDX) the other one for memofiles (FPT).
>>I don't remember which one is which, I just link in the both of them.
>
>
> I'm not 100% sure if this applies for 5.2 also. But this is a qoute from
> the 5.3 readme:

You are correct, 5.2 does not need _DBFCDX there is only one driver
which is DBFCDX.

Dragan Cizmarevic

unread,
Aug 31, 2002, 8:47:22 AM8/31/02
to

Geoff Barnard wrote:

Try DBX. It support NTX, CDX, ...

news.bellatlantic.net

unread,
Sep 4, 2002, 12:47:14 AM9/4/02
to
Hi all where can i get dbu.exe ?
thank you
"Geoff Barnard" <ge...@sos-ltd.com> wrote in message
news:24960c4a.02082...@posting.google.com...

Jules Alberts

unread,
Sep 4, 2002, 2:19:12 AM9/4/02
to
In article <mfgd9.5247$YL....@nwrddc01.gnilink.net>,

news.bellatlantic.net wrote:
> Hi all where can i get dbu.exe ? thank you

Last time I looked it was included in the Clipper distribution. I
don't recall if it was compiled and linked though, you may have to do
that yourself.

news.bellatlantic.net

unread,
Sep 4, 2002, 1:06:55 PM9/4/02
to
yes i dont have clipper i hav a program for my father store <POS> it has dbf
and cdx database and index on the password dbf it is null so i need to open
it and add some rights i only need some program which will open dbf
thank you
"Jules Alberts" <ro...@localhost.localdomain> wrote in message
news:slrnanb97o....@cuci.nl...

Stephen Quinn

unread,
Sep 4, 2002, 9:39:19 PM9/4/02
to

d/l a trial version of a tool that'll do the job from here
http://www.cybercrow.net.au/s_burak/ - DBAssist
http://www.rayonline.com/jrinfo/ - cmVODBX32 or VODBX32
0 new messages