Using nullrd

Using nullrd

Postby Baxajaun » Tue Jun 02, 2020 7:10 pm

Good afternoon !

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

Code: Select all  Expand view
//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  Expand view
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: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Using nullrd

Postby Antonio Mart. » Wed Jun 03, 2020 7:52 am

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

Re: Using nullrd

Postby Baxajaun » Wed Jun 03, 2020 8: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,
User avatar
Baxajaun
 
Posts: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Using nullrd

Postby Antonio Mart. » Wed Jun 03, 2020 8: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;
}
Antonio Mart.
 
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

Re: Using nullrd

Postby Baxajaun » Wed Jun 03, 2020 9:09 am

Thanks, but that doesn't fix the error.
User avatar
Baxajaun
 
Posts: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Using nullrd

Postby Antonio Linares » Wed Jun 03, 2020 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Using nullrd

Postby nageswaragunupudi » Tue Jun 16, 2020 2:14 pm

Please add this to nordd.prg

Code: Select all  Expand view
#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
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Using nullrd

Postby Baxajaun » Tue Jun 16, 2020 2:43 pm

Thanks Mr. Rao !

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

TIA!

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

Re: Using nullrd

Postby nageswaragunupudi » Tue Jun 16, 2020 3:13 pm

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Using nullrd

Postby Baxajaun » Tue Jun 16, 2020 3:17 pm

Mr. Rao !

Thanks again,

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 95 guests