trouble with loading externals...

Mark Wieder mwieder at ahsoftware.net
Thu Jan 22 12:42:10 EST 2004


Andre-

Thursday, January 22, 2004, 12:49:58 AM, you wrote:

Here's what I use to set the path to an external library:

global useFullPath

on mouseup
  -- Set useFullPath to true during development and testing
  -- then set it to false for final build,
  -- where you will place the external library in the same
  -- folder as the stack itself.
  put true into useFullPath
  
  set the itemDelimiter to "/"
  answer file "Find an external DLL"
  if it is not empty then
    if useFullPath then
      -- Specify the full path location of the external library
      set the externals of this stack to it
      -- Display the path if you want
      put it
    else
      -- Extract just the filename from the specified path.
      -- Put the external library in the same directory as the stack.
      -- In this case the external library should be in the defaultFolder
      -- which by default is the same folder as the stack.
      set the externals of this stack to the last item of it
      -- Display the path if you want
      put the last item of it
    end if
  end if
end mouseup

-- 
-Mark Wieder
 mwieder at ahsoftware.net



More information about the use-livecode mailing list