Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC:

This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 06:54 #16371

  • rjpajaron
  • rjpajaron's Avatar
  • Topic Author


  • Posts: 359
  • Hello XSharper,

    For the meantime that AdsMgGetUserNames() and AdsMgGetOpenTables() on ADS Management API is not yet supported, I am planning to create a VO DLL that will do thing.

    Wish me luck. I will try to use VOWin32APILibrary.Functions.LoadLibrary to load this thing.

    Well, I need to know also how many VO DLL that this "thing" will need. This will work.

    Regards,

    Rene
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 07:10 #16372

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3244
  • Hi Rene,
    you could write that in X# as it only calls functions from the ADS library.
    Since I need these functions to I will give them a look.
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 08:06 #16376

    • SHirsch
    • SHirsch's Avatar


  • Posts: 266
  • Hi all,

    keep in mind that this will only work if you are using ADS Remote Server. With Local Server this will not work.

    Stefan

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 12:13 #16379

    • rjpajaron
    • rjpajaron's Avatar
    • Topic Author


  • Posts: 359
  • I did port it to X# but, I have limited know how on dealing with Structure and other low level stuff. It does not work.

    The VO side is working fine for years. I am preparing a VO DLL and VO Console for anyone interested to take a look.

    Anyone interested to see this, let me know. I have a hard time translating it to X#. I need to give up after 2 days.
    Right now, I am trying to find ways on how to use a VO DLL from X# app. There are no sample in X# Help.
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 12:25 #16380

    • rjpajaron
    • rjpajaron's Avatar
    • Topic Author


  • Posts: 359
  • Attached herewith are VO AEF, one for DLL and another for Console app.

    This is very useful for my system administrator because they can monitor which computers (user) and what files each are using. Similar to ADS Data Architect > Tools > Remote Server Info.

    It works even the server is hidden and invisible move. I am on ADS 10.10, not tested on any other versions.

    I am trying to translate to X# the VO Console but it seems it does work using the regular LoadLibrary. I need to dig more in DotNet docs on loading Win32 apps. I do not like using COM.

    This features is not critical but I felt oblige to give our paying users feature parity between the VO vs X# apps. I am in side-by-side mode for next 6 months. Means: VO apps and X# must have 100% compatibility, both can be used side-by-side.


    File Attachment:

    File Name: VOADSLib.rar
    File Size:4 KB
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 12:26 #16381

    • robert
    • robert's Avatar


  • Posts: 3276
  • Rene,
    Writing the code in VO and then calling the VO DLL is not in the help file because we do not recommend it.
    I'll try to declare the prototypes and structures asap.
    The only problem is that I do not have an ADS Remote Server here to test it with...

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 12:28 #16382

    • rjpajaron
    • rjpajaron's Avatar
    • Topic Author


  • Posts: 359
  • Yes, It need the ADS remote server.
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 12:30 #16384

    • rjpajaron
    • rjpajaron's Avatar
    • Topic Author


  • Posts: 359
  • Hi Robert,

    Let me test that everyone. Anyway, we are joining FOX, if not this week, maybe next week. I have AEF attached in this thread. Take a look at that. That is working VO DLL and Console app. I was trying to translate the VO Console to X# but It did not work.

    Regards,

    Rene
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 12:32 #16385

    • rjpajaron
    • rjpajaron's Avatar
    • Topic Author


  • Posts: 359
  • My lead tester just called me this evening that their offsite test is 100% alright. and our R&D funds is now read. We robbed a bank somewhere. It may take more than week or less. I do not know.
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 12:35 #16386

    • rjpajaron
    • rjpajaron's Avatar
    • Topic Author


  • Posts: 359
  • Just this one features that remain the problem: ability to see what tables and users (PC) are using on remote ADS server. I am ambitious enough to announce last month to all our clients that VO and X# apps will be the same version (for regulatory purposes) and will be 100% feature parity. I will break this promise as X# can give me more. I love the bBrowser 4 latest capability.
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 13:10 #16387

    • robert
    • robert's Avatar


  • Posts: 3276
  • 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:
    _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:
    astOpenTableInfo ref ADS_MGMT_TABLE_INFO

    However that should be
    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
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 13:54 #16389

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3244
  • 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
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 13:54 #16390

    • rjpajaron
    • rjpajaron's Avatar
    • Topic Author


  • Posts: 359
  • Thanks Robert...
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 26 Oct 2020 16:46 #16391

    • Jamal
    • Jamal's Avatar


  • Posts: 303
  • Rene,

    Have you tried the Advantage .NET Data Provider?

    devzone.advantagedatabase.com/dz/content.aspx?Key=20

    Please Log in or Create an account to join the conversation.

    This is not OUT OF THE BOX SOLUTION (?) 30 Nov 2020 16:12 #16794

    • rjpajaron
    • rjpajaron's Avatar
    • Topic Author


  • Posts: 359
  • 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
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1