Announcement

Collapse
No announcement yet.

Using Dll's - Solved

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Dll's - Solved

    Hi All,

    In order to allow for new reports to be added to an application later I need to be able to call functions within dll's that are not known about at compile time. I am not sure how to link to these dll's at runtime or if this is possible.

    All advice welcome.
    Last edited by John Messingham; 30 Aug 2009, 03:41 PM. Reason: Found Answer

  • #2
    Using Dll's - solved

    Hi All,

    The phrase I was trying to remember was 'loadlibrary'

    Comment


    • #3
      In order to allow for new reports to be added to an application later I need to be able to call functions within dll's that are not known about at compile time.
      The Provider Payment Partner (tm) System uses this same method to offer not only updated versions of 'standard' reports, but allows users to install custom reports and still be able to upgrade the standard product.

      That I did because when I was a user, I was always upset that when the publisher had an upgrade, we had to pay to 're-tailor' our applications.

      It's also used in The EDI Pal(tm) ANSI EDI Viewer-Editor-Printer to allow for the separate purchase of licenses for priced add-ons.

      Here I had to do that because some users are in healthcare and others in manufacturing/distribution, and would never order both sets of options.
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        The approach is also documented in Help, under the topic:



        CALL DWORD statement

        Comment


        • #5
          Another circumstance in which I use LoadLibrary/CALL DWORD rather than DECLARE is when I am creating/modifiying a function to be stored in a DLL and getting to the point where the new function is to be tested takes a lot of time, eg to go thru a logon screen, do a File/Open, etc.

          With dynamic loading you can set up the calling program pretty much at the point where you click the button to make the call.

          If you have made an error, you can recompile the DLL without a "destination write error [file in use]" and try again without ending and restarting the EXE.

          MCM
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment

          Working...
          X