Page 1 of 2

MS SQL Connection Question? Rick Lipkin??

Posted: Fri Jan 11, 2008 10:22 pm
by bradmaudlin
Hi Rick (or anyone else),
I'm trying to compile and link some of your sample code for MS SQL connections. I'm doing something wrong. I get some unresolved externals.

--------------------------------------------------------------

Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_hb_vmProcessSymbolsEx' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd
Error: Unresolved external '_HB_FUN_USRRDD_RDDDATA' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd
Error: Unresolved external '_HB_FUN_USRRDD_AREADATA' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd
Error: Unresolved external '_HB_FUN_USRRDD_ID' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd
Error: Unresolved external '_HB_FUN_UR_SUPER_ERROR' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd
Error: Unresolved external '_HB_FUN_UR_SUPER_SETFIELDEXTENT' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd
Error: Unresolved external '_HB_FUN_UR_SUPER_ADDFIELD' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd
Error: Unresolved external '_HB_FUN_UR_SUPER_OPEN' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd
Error: Unresolved external '_HB_FUN_UR_SUPER_CLOSE' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd
Error: Unresolved external '_HB_FUN_USRRDD_GETFUNCTABLE' referenced from C:\XHARBOUR\LIB\ADORDD.LIB|adordd

--------------------------------------------------------------------------

I'm linking in ADORDD.LIB (Dated 4-27-2007 9,728 byte)
Also included "adordd.ch" in main PRG.

Am I still missing something??

Anyones help would be appreciated.

Thanks,

Brad
C&M Business Machines, Inc.

Posted: Fri Jan 11, 2008 11:10 pm
by Antonio Linares
Brad,

You are linking the ADORDD.lib for Harbour, not for xHarbour.

You have to link the ADORDD.lib for xHarbour and also USRRDD.lib

Posted: Sat Jan 12, 2008 1:52 am
by Rick Lipkin
Brad

When I was testing adordd .. there was a usrrdd.c file that Antonio distributed .. I linked in adordd.prg as well as usrrdd.c and I was successful in makeing it work.

I think the usrrdd.lib file with the latest version of (x)Harbour has some problems ..

I still have the origional usrdd.c file and you can easily add that to your make file instead of the usrrdd.lib ..

If you wish to try .. send me an e-mail lipkinrm29063@yahoo.com and I will be glad to send it to you .

Rick Lipkin

Posted: Sat Jan 12, 2008 2:50 am
by nageswaragunupudi
I did not get usrrdd.c with my FWH. Only usrrdd.lib. I am interested in the c source code. Can you please email me too?

My problem is matching source code of rdd_ads. If i can get the source of rdd_ads ( *.c and *.h ) used by FWH, that would be nice. Is it too much to expect from Mr. Antonio ?

Posted: Sat Jan 12, 2008 7:09 am
by Antonio Linares
NageswaraRao,

You can get that source code directly from the Harbour SVN or from the xHarbour CVS. Its open source.

Posted: Sat Jan 12, 2008 7:17 am
by nageswaragunupudi
What I meant was the exact version that matches with FWH release. the source code i downloaded and used did not match and got GPFs.

Posted: Sat Jan 12, 2008 7:37 am
by Antonio Linares
NageswaraRao,

You can do a checkout of the file for a specific date, the same date used to build the xHarbour build

Posted: Sat Jan 12, 2008 7:39 am
by Antonio Linares
NageswaraRao,

Anyhow, yesterday I was reported that the RDD GPFs have been fixed in a recent xHarbour build.

So if you do a checkout of the current xHarbour CVS code and build it, it will probably work fine without GPFs.

If you want, we may prepare a new xHarbour build here so you can check it and see if the GPFs are solved :-)

Posted: Sat Jan 12, 2008 7:50 am
by nageswaragunupudi
> If you want, we may prepare a new xHarbour build here so you can check it and see if the GPFs are solved

I would be very glad if you can do that. Thanks in advance

Posted: Sat Jan 12, 2008 8:39 am
by Antonio Linares
NageswaraRao,

Here you have it:
http://rapidshare.com/files/83156204/xharbour.exe.html

We appreciate your feedback, thanks! :-)

Posted: Sat Jan 12, 2008 9:02 am
by nageswaragunupudi
Mr Antonio

Thank you very much. I installed the new xHarbour.

ADORDD is working perfectly with the usrlib.lib of the new xharbour.

Posted: Sat Jan 12, 2008 9:06 am
by Antonio Linares
NageswaraRao,

> ADORDD is working perfectly with the usrlib.lib of the new xharbour.

Very good! :-)

Have you tested ADS RDD also ? many thanks for your feedback,

Posted: Sat Jan 12, 2008 9:08 am
by nageswaragunupudi
rdd_ads.lib that is installed works fine.

But I need to reconstruct it with my modifications. I am downloading the latest sources. I rebuild and confirm, but I am confident it will work.

Posted: Sat Jan 12, 2008 9:13 am
by Antonio Linares
Thanks!

Posted: Sat Jan 12, 2008 10:57 am
by nageswaragunupudi
rddads complied by me also is working.