Antonio,
He is not using Microsoft, he is using Borland.
Here is the problem. I built a file editor class ( dbu ). It has been working quite well. Take a look at this code snippet:
- Code: Select all Expand view RUN
@ 0,0 XBROWSE ::oBrw OF ::oEwndChild ALIAS ::oDbf ON CHANGE ::oDbfr:load() UPDATE ;
AUTOCOLS AUTOSORT FOOTERS LINES CELL NOBORDER
// Set the header and row heights
::oBrw:nHeaderHeight := 30
::oBrw:nRowHeight := 24
// Set the styles
::oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
::oBrw:nColDividerStyle := LINESTYLE_RAISED
::oBrw:nRowDividerStyle := LINESTYLE_RAISED
FOR nCCol := 1 TO LEN( ::oBrw:acols )
::oBrw:aCols[nCCol]:nHeadStrAlign := AL_CENTER
NEXT
// Now create it
::oBrw:CreateFromCode()
::oEwndChild:oClient := ::oBrw
// OK to hide columns
::oBrw:lAllowColHiding := .t.
oDbf is a database object which contains all of the records in a file. The user can highlight a record and click an edit button and then will receive a popup with the fields and data for editing.
Building this with xHarbour ( .com ) and those ADS files, we have absolutely no problems. Everything works perfectly.
Building this with Harbour / MSVC 2013, it all loads and appears to work well. However, if I take the scroll bar slider and move it to the bottom, then click on a record to highlight it, I get the following error:
Error description: Error ADSCDX/5018 The handle given was not recognized by Advantage. Verify specified handle is open/active.
The error is generated from Database.prg, line 156.
So, this error occurs when using Advantage Database Server ( REMOTE ). If I switch to DBFCDX, same exact build, there is no problem. If I use the Advantage Database Server with xHarbour ( .com ), exact same code, there is no problem.
The only difference here is the ADS files, specifically ACE32.lib and RDDADS.lib.
You have a 64 bit build for RDDADS.lib on your download but not a 32 bit, built with MSVC. My file is quite old ( over 4 years ) so it is likely a new, 32bit RDDADS.lib built with MSVC 2013 might resolve this issue.
Tim