ADS 7.1 to ADS 8.1

Post Reply
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

ADS 7.1 to ADS 8.1

Post by fraxzi »

Hello!

After I removed ADS Local server (7.1) and it associated files and then install ADS Local server (8.1)... I encountered this strange problem...

here's the code...

Code: Select all

 hADS := 0
       cCurrentRDD := 'ADS'

       lADSServer_OK := ADSConnect60( aIni[ cDATABASEPATH ], aIni[ nCONNECTTYPES ], 'user', '***')


       If lADSServer_OK

          hADS := AdsGetConnectionHandle()

          Request ADS

          rddRegister( cCurrentRDD, 1 )
          rddsetdefault( cCurrentRDD )

          Extern ADSKeyNo
          Extern ADSKeyCount
          Extern ADSSetRelKeyPos
          Extern ADSGetRelKeyPos

          AdsSetFileType( ADS_CDX )
          AdsSetCharType("OEM")
          AdsLocking( .T. )                      
          AdsSetDateFormat( "MM.DD.YYYY" )
          AdsSetEpoch( 1930 )
          AdsSetDeleted( .F. )                 


          //
          DBSelectArea( 1 )
          dbUseArea(.T., cCurrentRDD, 'RESPON', 'RE', .T., .F.)
          IF !NetErr()

              RE->( OrdSetFocus('RespNam') )

          ELSE
              cTableErrors += 'RESPON Table ' + CRLF
          END
          //
the above code works perfectly with both 7.1 and 8.1 BUT...

Code: Select all

             RE->( dbEval( {|| AAdd( aListBox_RESPONSIBILITY, {RE->RESPCOD,RE->RESPNAM} ) } )) 

dbEval >> DOES NOT WORK WITH 8.1 ....Apps closes without any message even within begin..sequence construct..

Code: Select all

 MsgInfo(RE->RESPNAM)  
Doe not even work too!

Any pointer?

Regards, :(
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

SOLVE!

AdsGetConnectionHandle() not in ACE32.DLL (8.1)

but... AdsConnection() is compatible in both 7.1 and 8.1 ace32.dll


whewww! 8)



Thanks!
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
Patricio Avalos Aguirre
Posts: 1028
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile
Contact:

Post by Patricio Avalos Aguirre »

Hello

Code: Select all

ADSConnect60( aIni[ cDATABASEPATH ], aIni[ nCONNECTTYPES ], 'user', '***',, @hADS)
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

Hi!

I think yours is much better.... 8)



Regards,
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Post Reply