FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Using nullrd
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Using nullrd
Posted: Tue Jun 02, 2020 07:10 PM
Good afternoon !

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

Code (fw): Select all Collapse
//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 (fw): Select all Collapse
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
Posts: 174
Joined: Sat Feb 23, 2013 10:04 AM
Re: Using nullrd
Posted: Wed Jun 03, 2020 07:52 AM
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Re: Using nullrd
Posted: Wed Jun 03, 2020 08:53 AM

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,

Posts: 174
Joined: Sat Feb 23, 2013 10:04 AM
Re: Using nullrd
Posted: Wed Jun 03, 2020 08:57 AM

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;
}

Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Re: Using nullrd
Posted: Wed Jun 03, 2020 09:09 AM

Thanks, but that doesn't fix the error.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Using nullrd
Posted: Wed Jun 03, 2020 01:00 PM

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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Using nullrd
Posted: Tue Jun 16, 2020 02:14 PM
Please add this to nordd.prg

Code (fw): Select all Collapse
#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
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Re: Using nullrd
Posted: Tue Jun 16, 2020 02:43 PM

Thanks Mr. Rao !

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

TIA!

Best regards,

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Using nullrd
Posted: Tue Jun 16, 2020 03:13 PM

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Re: Using nullrd
Posted: Tue Jun 16, 2020 03:17 PM

Mr. Rao !

Thanks again,

King regards,

Continue the discussion