How To Start With ADS

How To Start With ADS

Postby Detlef Hoefner » Mon Apr 16, 2007 11:27 am

Hi friends,

could anybody give me some info about how to get started with ADS?
I would like to demonstrate our boss the advantages of ads.

We have a lot of clipper/FW/FWH programs running and if a demo could convince me ( and my boss ) i'd like to migrate all apps to FWH + ADS.

I heard that the best version of ads should be 6.2.
But for Demo download i find only 8.1 version.

Any info is welcome.
Thanks and regards,
Detlef
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Ruben Fernandez » Mon Apr 16, 2007 4:41 pm

Detlef:

Try to contact the ADS'Master, Mr. RF is the man.
You'll find his email here in the forum.

Sorry for my English.

Regards

Ruben Fernandez
Ruben Fernandez
 
Posts: 366
Joined: Wed Aug 30, 2006 5:25 pm
Location: Uruguay

Postby carlos vargas » Mon Apr 16, 2007 5:05 pm

Detlef

today night prepare you a little manual with examples
in spanish. (sorry, my native language is the spanish).

but can you traslate or an other friends :-)

sorry for my terrible english. :-(


salu2
carlos vargas
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1719
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Postby Detlef Hoefner » Mon Apr 16, 2007 5:16 pm

Hello Ruben and Carlos,

thank you very much .
Don't care for good or horrible english.
It is not my native language too.

So your help is appreciated :D.

Best regards,
Detlef
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby UD previous posts » Mon Apr 16, 2007 7:21 pm

I have a nice 7.1 demo

udiemer@web.de
UD previous posts
 
Posts: 42
Joined: Sat Sep 30, 2006 9:43 am

Postby R.F. » Mon Apr 16, 2007 9:56 pm

Detlef:

ADS ver. 6.x is quite old, should be about 4 or 5 years old, the newest version is 8.1, in fact version 6.x is not longer supported and has been discontinued.

What you need:

1) The ADS needed DLL files, you have to place them in the same directory where you EXE file is:

ADSLOC32.DLL: this is a full featured ADS LOCAL Server, supports all the ADS features except two: Is not Client/Server aware, and it doesn't support transactions. You can use it in your personal computer or in LAN enviroments up to 5 users. You are free to distribuite it with your application.

ACE32.DLL: this file contains ALL the ADS functions, you will need this file to create a LIB file to link into your EXE, keep reading.

AXWCS32.DLL: this is the "client" for ADS, no matter which server you use (LOCAL, REMOTE or INTERNET) you will need this file to exist in order to connect to the server.

These are free DLLs that you can distribuite along with your application.

Where to get them ?. They are free, and they are included in the Advantage Data Architech (ARC) which is a free tool, kind of DBU, very useful by the way, you can browse DBFCDX, DBFNTX or ADS tables with it, you can also create "data dictionaries" and use SQL to retireve data from your DBF files, you can download it from:

www.advantagedatabase.com

or, for fast:

www.google.d2g.com/ads/ver7/arc32.exe.

I'm refering you to version 7.1 since the ARC is more "understandable" than in version 8.1, however, version 7 DLLs will work perfectly in 8.1.

2) Source Code.

Once you get the DLLs, you have to make some changes in your source code, add this lines at the beging of your source code:

Code: Select all  Expand view
//Requesting the ADSRDD
REQUEST ADS
RDDSETDEFAULT("ADS")

//setting up server type
// 1 = Local Server (no client / server)
// 2 = Remote Server
// 3 = Local + Remot
// 4 = Internet Server
// 5 = Local + Internet
// 6 = Remote+Internet
// 7 = Local + Remote + Internet , best choice
AdsSetServerType(7)

//setting up the file types
// 1 = DBFNTX
// 2 = DBFCDX
// 3 = ADSADI
AdsSetFileType(2)


And basically You are done !!!!!, all the stuff regarding data access remains the same, USE, APPEND, REPLACE all the rest works as usual (commands and functions) thanks to the RDD technology.

There are some extra functions that you may need to call, but basically this all what you need.

3) Compiling and linking:

You will to link 2 libraries into your (x)HB application: RDDADS.LIB and ACE32.LIB.

ACE32.LIB comes from ACE32.DLL, you will need to create the LIB from the DLL, you have to use the program IMPLIB.EXE to do the job (IMPLIB comes with the Borland C++ compiler in the bin directory), sintax:

IMPLIB ACE32.LIB ACE32.DLL

And you are done !!! you have created the LIB from the DLL.

No comes the not-too-easy part, to create the RDDADS.LIB

You can get the RDDADS.LIB from (x)Harbour contributions, it comes in source "C" code, it's highly probably that you may need to rebuild it, but you will find bat files to do the job where the source code is.

Once created the LIBs, just link them to your program, and done !!!!

You are ready to ADS.

Feel free to contact me for further information
Saludos
R.F.
R.F.
 
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Postby Detlef Hoefner » Tue Apr 17, 2007 7:58 am

Rene,

thanks a lot for your profound explanation.
Unfortunatelly your link www.google.d2g.com/ads/ver7/arc32.exe doesn't work.
I'll try to find those files at advantagedatabase.com.

You tell me not to use a 6.x version of ADS.
I thought that versions after 6 can not work together with 16 bit clipper apps.

I have this problem to migrate one app after the other to 32 bit.
But in the meanwhile the older programs should still be able to handle the dbf data.

Is it possible to setup an ADS Server on a dedicated server and access the dbf files on this machine as well from Germany and from China?

For the moment we have to make daily updates to be synchronized with our data. It would be a very big step forward if we had the possibility to use one and the same dbf system.

Could you please tell me if it's possible for me to build a very small prog with the ADS demo version to show my boss this dbf sharing?

Thanks again Rene
and best regards,

Detlef
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 67 guests