Using nullrd

Post Reply
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Using nullrd

Post by Baxajaun »

Good afternoon !

I'm trying to use Harbour's nullrdd with FWH. I've created a prg called NoRdd.prg

Code: Select all

//NoRdd.prg
// Funciones dummy para FWH para no usar RDDs

FUNCTION DBInfo()
RETURN NIL

FUNCTION FieldType()
RETURN NIL

FUNCTION FieldLen()
RETURN NIL

FUNCTION FieldDec()
RETURN NIL

FUNCTION __DbSkipper()
RETURN NIL

FUNCTION OrdKeyRelPos()
RETURN NIL

FUNCTION OrdSetFocus()
RETURN NIL

FUNCTION OrdKeyGoto()
RETURN NIL

FUNCTION OrdKeyNo()
RETURN NIL

FUNCTION OrdKeyCount()
RETURN NIL

FUNCTION OrdBagName()
RETURN NIL

FUNCTION DbRecordInfo()
RETURN NIL

FUNCTION DbRunLock()
RETURN NIL

FUNCTION OrdKeyVal()
RETURN NIL

FUNCTION OrdWildSeek()
RETURN NIL 

FUNCTION DbClearFilter()
RETURN NIL

FUNCTION DbSetFilter()
RETURN NIL

FUNCTION OrdNumber()
RETURN NIL

FUNCTION OrdDescend()
RETURN NIL

FUNCTION OrdCount()
RETURN NIL

FUNCTION DbrLockList()
RETURN NIL

FUNCTION DbCommit()
RETURN NIL

FUNCTION OrdCondSet()
RETURN NIL

FUNCTION OrdCreate()
RETURN NIL

FUNCTION __DbLocate()
RETURN NIL

FUNCTION OrdSkipRaw()
RETURN NIL

FUNCTION DbFilterBlock()
RETURN NIL
But i've this error

Code: Select all

f:/develop/ccompilers/winlibs/1032/mingw32/bin/../lib/gcc/i686-w64-mingw32/10.1.0/../../../../i686-w64-mingw32/bin/ld.exe: F:\Develop\FWH\LIB\FiveHG.lib(DBFFUNC2.o):DBFFUNC2.c:(.text+0x2d5): undefined reference to `hb_rddGetCurrentWorkAreaPointer'
Any idea ?

Best regards
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Using nullrd

Post by Baxajaun »

Hi Antonio,

thanks for answering, but this lib is linked. It is a FWH problem, when you link your application with FWH libs allways use a RDD.
Problem is in source\functions\dbffunc2.prg.

Best regards,
Antonio Mart.
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

Re: Using nullrd

Post by Antonio Mart. »

Supongo que metiendo la funcion en un pragma te funcione. No se si los parametros de entrada son correctos.

int hb_rddGetCurrentWorkAreaPointer( void )
{
return 0;
}
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Using nullrd

Post by Baxajaun »

Thanks, but that doesn't fix the error.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Using nullrd

Post by Antonio Linares »

Felix,

If you can't solve it linking nulrdd then I am afraid that there is no way to get that using FWH

Rdds use is very much related inside FWH libraries, so it is not an easy way to avoid it.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Using nullrd

Post by nageswaragunupudi »

Please add this to nordd.prg

Code: Select all

#pragma BEGINDUMP
int hb_rddGetCurrentWorkAreaPointer()
{
   return 0;
}
#pragma ENDDUMP
 
This will solve this error
But i've this error
Code:
f:/develop/ccompilers/winlibs/1032/mingw32/bin/../lib/gcc/i686-w64-mingw32/10.1.0/../../../../i686-w64-mingw32/bin/ld.exe: F:\Develop\FWH\LIB\FiveHG.lib(DBFFUNC2.o):DBFFUNC2.c:(.text+0x2d5): undefined reference to `hb_rddGetCurrentWorkAreaPointer'
Regards

G. N. Rao.
Hyderabad, India
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Using nullrd

Post by Baxajaun »

Thanks Mr. Rao !

I want to build a Harbour/FWH application without any database rdd, is it possible ?

TIA!

Best regards,
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Using nullrd

Post by nageswaragunupudi »

I can not say anything now.
Looks very difficult.
I will keep this in mind.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Using nullrd

Post by Baxajaun »

Mr. Rao !

Thanks again,

King regards,
Post Reply