Adssetnull external error

Adssetnull external error

Postby Admpss » Thu Jun 13, 2019 1:55 pm

HI, im trying use xharbour from repository, last version, after compile, receive the error:

error: unresolved external "_AdsSetNull" referenced from rddads.lib | adsfunc

something change ? last xharbour version have some error?

something related to this?

2018-05-28 11:20 UTC+0200 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>
* contrib\rddads\adsfunc.c
! added functions ADSDDSETFIELDPROPERTY(), ADSSETTIMESTAMP() and ADSSETNULL(). Thanks to Reinaldo!


thanks
Admpss
 
Posts: 26
Joined: Wed Oct 31, 2018 7:37 pm

Re: Adssetnull external error

Postby Enrico Maria Giordano » Thu Jun 13, 2019 5:26 pm

Someone else using ADS can check this, please?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Adssetnull external error

Postby Enrico Maria Giordano » Fri Jun 14, 2019 8:07 am

Luiz, an xHarbour developer, wrote: "Probaly his ads client .lib is from an old version".

Please check.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Adssetnull external error

Postby Admpss » Fri Jun 14, 2019 11:42 am

EMG, very thanks, im using ads 10.10, we dont update to last version because we dont need new features and price of update too. but xharbour Always Works with ads 8, 9 ,10 in old versions, if i remenber in source of rddads have an #define like IF adsversion == x, adsversion == y.

i have to go back to old version of xharbour until problem is fix, very thanks again.

best regards
Admpss
 
Posts: 26
Joined: Wed Oct 31, 2018 7:37 pm

Re: Adssetnull external error

Postby Enrico Maria Giordano » Fri Jun 14, 2019 12:33 pm

Please, try to ask to comp.lang.xharbour newsgroup.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Adssetnull external error

Postby Admpss » Fri Jun 14, 2019 1:31 pm

EMG, i will, just let me know, there commit made for you, is to specific version of ads? why you add these functions, in changelog you say reinaldo advice, reinaldo can say if these function is specific to some version of ads?

another solution is go to harbour....

very thanks
Admpss
 
Posts: 26
Joined: Wed Oct 31, 2018 7:37 pm

Re: Adssetnull external error

Postby Enrico Maria Giordano » Fri Jun 14, 2019 2:24 pm

Admpss wrote:EMG, i will, just let me know, there commit made for you, is to specific version of ads?


Don't think so but I'm not an ADS user, so I don't know for sure.

Admpss wrote:why you add these functions, in changelog you say reinaldo advice, reinaldo can say if these function is specific to some version of ads?


Probably yes. Reinaldo, are you listening?

Admpss wrote:another solution is go to harbour....


But even so, we better to fix xHarbour too, it there is a bug to fix.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Adssetnull external error

Postby Admpss » Fri Jun 14, 2019 2:52 pm

EMG, in adsfunc.c adssetnull is commented,

/*HB_FUNC( ADSSETNULL )
{
UNSIGNED32 ulRetVal;
ADSAREAP pArea = hb_adsGetWorkAreaPointer();
ulRetVal = AdsSetNull( (hb_parnl(1)==0) ? pArea->hOrdCurrent : hb_parnl(1),(char*) hb_parc(2));
hb_retl( ulRetVal == AE_SUCCESS );
}*/

but in the same adsfunc.c have this:

HB_FUNC( ADSSETNULL )
{
UNSIGNED32 ulRetVal;
ADSAREAP pArea = hb_adsGetWorkAreaPointer();

ulRetVal = AdsSetNull( pArea->hStatement,
( UNSIGNED8 * ) hb_parcx( 1 ) ) ;// pucFldName ,

hb_retl( ulRetVal == AE_SUCCESS );
}

another reference is in ace32.c

UNSIGNED32 ENTRYPOINT AdsSetNull( ADSHANDLE hTable, UNSIGNED8 *pucFldName )
{
#if defined(__cplusplus)
static ADSSETNULL_PTR
#else
static ADSSETNULL_PTR pFunc = NULL;
if ( !pFunc )
#endif
pFunc = (ADSSETNULL_PTR) Ace32_GetProcAddress( "AdsSetNull" );

return pFunc( hTable, pucFldName );
}

thanks
Admpss
 
Posts: 26
Joined: Wed Oct 31, 2018 7:37 pm

Re: Adssetnull external error

Postby Enrico Maria Giordano » Fri Jun 14, 2019 2:59 pm

I don't know why this is commented out... It could be an error from mine, sorry. Ok, let's try to uncomment it...

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Adssetnull external error

Postby Admpss » Fri Jun 14, 2019 3:03 pm

EMG, i guess the comented is the original one, and uncommented is the reinaldo sugestion.

i will try compile xharbour with rddads without your commit, to see if the error persist.

thanks
Admpss
 
Posts: 26
Joined: Wed Oct 31, 2018 7:37 pm

Re: Adssetnull external error

Postby Enrico Maria Giordano » Fri Jun 14, 2019 3:05 pm

Done. Let's wait for Mel to make the new xHarbour builds...

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Adssetnull external error

Postby Enrico Maria Giordano » Fri Jun 14, 2019 3:08 pm

Admpss wrote:EMG, i guess the comented is the original one, and uncommented is the reinaldo sugestion.

i will try compile xharbour with rddads without your commit, to see if the error persist.

thanks


Ops! Sorry, I'm going to revert my change...

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Re: Adssetnull external error

Postby Admpss » Sat Jun 29, 2019 8:03 am

EMG, thanks, but not solved. same error after your commit. can you see with reinaldo why this changes, they are to specific ads version? thanks again.
Admpss
 
Posts: 26
Joined: Wed Oct 31, 2018 7:37 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests