DLLs

Dan Friedman dan at clearvisiontech.com
Mon Mar 24 12:47:00 EST 2003


Chipp,

I checked the externals of the stack and it looks fine.  When I save and
rerun it, it works fine.  Even in a standalone.  However, if I move the
standalone to another directory, it fails -- even though I am setting the
externals to the correct path, then closing and reopening the stack.

What I did was create an "engine" stack that opens the stack file of my
project.  When I did that, everything started to work!  (No code was changed
in the project stack) It would seem to me that RR doesn't want you to change
the externals of a stack in a standalone (at lease the main stack).  I could
be out to lunch, but at lease it's working now.

Thank you for the suggestion/reply.
Dan


> Dan,
> 
> My guess is you have a path problem. In RR from the msg do:
> 
> put the externals of this stack
> 
> to tell you what your stack currently 'thinks' is the path to the dll.
> 
> If there is any path info other than the name, then it probably won't work.
> I always
> 
> set the externals of this stack to "fred.dll"
> 
> and keep a copy of the fred.dll in the same place as the RunRev application.
> Then when building a standalone, copy the fred.dll to the same folder as
> where the standalone runs from. Remember, you can't  execute a:
> 
> set the externals of this stack to "fred.dll"
> 
> on startup from a runtime. In order for DLL's to work, the external property
> must be saved with the stack, then launched anew.
> 
> Hope this helps.
> 
> Chipp




More information about the use-livecode mailing list