FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ADS 7 - 11 with Harbour ?
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
ADS 7 - 11 with Harbour ?
Posted: Fri Aug 30, 2013 05:43 PM

I have source code built into .Exe's using two different resources:

X = xHarbour(.com) with Pelles C

M = Harbour plus MSVC

The same code is used in both cases.

The problem is this. With the libraries we have tried, Building with X allows us to use ADS server versions 7 through 11. Building with M will only allow us to use ADS 9 through 11.

There was a clear change with ADS 9. However, the calls I make are present in all versions of ADS. We just can't get the right libs built to allow me to access all versions of ADS from 7 to 11 under the Harbour build.

I have many clients who use ADS 7 or 8, and they are not willing to spend the money to update to a new version of ADS.

Has anyone actually used this combination ( Harbour, FWH, MSVC ) with ADS versions 7 through 9 ? Your help would be appreciated.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: ADS 7 - 11 with Harbour ?
Posted: Fri Aug 30, 2013 08:06 PM

Hi Tim;

I don't think you need special builds. Obviously your harbour code does not make use of any fucntion/feature introduced after ver 7. An older client can always speak to a newer server. The opposite is not true. Therefore, <in your case> I would simply build my apps targeting version 7. Make sure you distribute ace32, adsloc32.dll, axcws32.dll or any other ADS .dll and .libs from version 7 to all your customers. Regardless if they are running version 11 of the server, the client will connect and the server will "understand" version 7 from the client side.

Hope that helps,

Reinaldo.

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: ADS 7 - 11 with Harbour ?
Posted: Fri Aug 30, 2013 08:10 PM

Reinaldo,

The issue is not with the the server, or .dlls, but rather the .libs I have available to link in to the application.

The libs for xHarbour will NOT work with Harbour. Trying to build .libs for Harbour has been a failure to date. We can get it to work with ADS 9 and above, but not 7 and 8.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: ADS 7 - 11 with Harbour ?
Posted: Fri Aug 30, 2013 08:33 PM

Why? I mean, why you say it won't work? Do you get an error message? Do you get a gpf? Don't you get to AdsConnect60() to the server? Do you get 7078 error message? Is the server discovery processes not working? Is the failure building rddads.lib? if so, then do you get error message while trying to compile .c files that make up rddads.lib?

I have never built rddads.lib for harbour using msvc, but the process should be the same. I bet your harbour build (the one not working), is being built with a .lib that was created from .dlls that belong to version 9 or you haven't set the environmental ADS version variable correctly when compiling the .c sources. Again, any version of the client will work with version 11 of the server.

Reinaldo.

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: ADS 7 - 11 with Harbour ?
Posted: Fri Aug 30, 2013 09:16 PM
Tim;

In case the problem is building rddads.lib or if you haven't been able to build your own rddads.lib or are having problems building it, here is a post I did sometime ago that explains how to do it. On this post I also explain a few concepts about the rddads.lib that you might find interesting:

http://structuredsystems.blogspot.com/

Hope that helps,


Reinaldo.
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: ADS 7 - 11 with Harbour ?
Posted: Fri Aug 30, 2013 10:55 PM

I will review the post.

Actually Antonio tried building the .lib files because he had all of the source files necessary for Harbour.

I got to a point where I could do the build, but received an error message when trying to access the server. Originally I was getting an Ordinal 508 error when trying to build it.

I'll read your material and then check out another thought I had ....

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion