mvFile_Resolve Replacement?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MLT
    Mini Mivite


    • Jul 2007
    • 97

    #1

    mvFile_Resolve Replacement?

    An older MvFunction extension dll for dealing with PDF files used MvFile_Resolve, which was deprecated in 5.18. Is there a replacement api function that returns a fully qualified path-file? We are reading Miva's data and script path from the registry (which is working), but I'd like to make sure there isn't a better approach using miva's api.

    Thanks!
    -mike
  • Brennan
    Super Moderator









    • Jun 2009
    • 3481

    #2
    This function should give you what you need:

    Miva Script is a server side web scripting language is especially well suited for development of web applications having built in support for SQL and xBase3 databases.


    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    • dcarver
      Director of Software Dev.




      • May 2013
      • 400

      #3
      mvFile_NormalizePath should give you what you want.
      David Carver
      Miva, Inc. | Software Developer

      Comment

      • MLT
        Mini Mivite


        • Jul 2007
        • 97

        #4
        Thanks David! We will give that a shot!
        -mike

        Comment

        • MLT
          Mini Mivite


          • Jul 2007
          • 97

          #5
          David,

          We've investigated the MvFILE_NormalizePath and it's not what we need. It does normalize the path, but since we are creating pdf files, we need the absolute script and data path. I think the MvFile_Resolve provided the configured script and data root. Is there another api call that provides the absolute root script/data paths? It would seem that any of the miva file functions would need this; so how does Miva figure this out?

          For Miva Mia, we can read the registry to get this. For empressa on windows, it looks like we can read the application host configuration file. Hoping for an API approach - is there one?

          Thanks,
          -mike

          Comment

          Working...
          X