xsharp.eu • This is not OUT OF THE BOX SOLUTION (?) - Page 2
Page 2 of 2

This is not OUT OF THE BOX SOLUTION (?)

Posted: Mon Oct 26, 2020 12:10 pm
by robert
Rene,

I had a quick look at the Advantage prototypes for their AdsMg functions, and there are a couple of errors in the prototypes.
VO ignores these errors but the errors make it impossible to compile this code in X#.

For example:

Code: Select all

_dll FUNC AdsMgGetOpenTables( hMgmtHandle as DWORD, pucUserName as psz, usConnNumber as word, astOpenTableInfo ref ADS_MGMT_TABLE_INFO, pusArrayLen ref word, pusStructSize ref word ) as DWORD PASCAL:ACE32.AdsMgGetOpenTables
Parameter 4 is declared:

Code: Select all

astOpenTableInfo ref ADS_MGMT_TABLE_INFO
However that should be

Code: Select all

astOpenTableInfo AS ADS_MGMT_TABLE_INFO
Because ADS_MGMT_TABLE_INFO is a structure (VOSTRUCT in X#).

I'll create a lib and will upload it asap

Robert

This is not OUT OF THE BOX SOLUTION (?)

Posted: Mon Oct 26, 2020 12:54 pm
by wriedmann
Hi Robert,
if you need it, I can prepare you a remote desktop session where you can access a ADS server (I have buyed a 2 user server for internal development purposes).
Wolfgang

This is not OUT OF THE BOX SOLUTION (?)

Posted: Mon Oct 26, 2020 12:54 pm
by rjpajaron
Thanks Robert...

This is not OUT OF THE BOX SOLUTION (?)

Posted: Mon Oct 26, 2020 3:46 pm
by Jamal
Rene,

Have you tried the Advantage .NET Data Provider?

https://devzone.advantagedatabase.com/d ... spx?Key=20

This is not OUT OF THE BOX SOLUTION (?)

Posted: Mon Nov 30, 2020 3:12 pm
by rjpajaron
Hi Jamal,

I will try 2.7 today if it is OK.

ADS .NET provided none that I know of that deals like what we have on ACE32 Management API. I think, this is purely an Win32 API, none of it is being supported in ADS .NET data provider libraries.

--

Rene