ADS 7.1 to ADS 8.1

ADS 7.1 to ADS 8.1

Postby fraxzi » Mon Jun 02, 2008 10:12 am

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  Expand view  RUN
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  Expand view  RUN
             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  Expand view  RUN
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

Postby fraxzi » Mon Jun 02, 2008 3:09 pm

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
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Postby Patricio Avalos Aguirre » Tue Jun 03, 2008 8:26 pm

Hello

Code: Select all  Expand view  RUN
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
Patricio Avalos Aguirre
 
Posts: 1060
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

Postby fraxzi » Wed Jun 04, 2008 12:53 pm

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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 58 guests