in reply to Re: Embedding extra DLLs into .exe *and finding* them again
in thread Embedding extra DLLs into .exe *and finding* them again
Hi,
Thank you for responding.
The failure is at run time. If the DLLs are in the same folder as the exe then it works perfectly. If they're not, then the application fails with an error message stating that it can't find the DLLs (even though they're embedded in the exe).
The original exe didn't have this issue. The embedded DLLs were extracted somewhere then located by Windows when needed.
Would setting the PATH variable from within the application work? I did try playing with this idea, but I got the impression that the exe tried to locate the DLLs before the code got started, and that setting PATH was happening too late. Maybe I was doing something wrong?
The source code doesn't currently modify PATH so I assume that this wasn't necessary for the original "compile"?
I'm actually new to Perl as a language. If there's an example somewhere of setting the PATH variable to point to the location of the extracted exes when using either PAR or Perl2exe then I'd be grateful.
Tim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Embedding extra DLLs into .exe *and finding* them again
by Anonymous Monk on Jul 30, 2009 at 16:32 UTC | |
|
Re^3: Embedding extra DLLs into .exe *and finding* them again
by Marshall (Canon) on Jul 30, 2009 at 16:47 UTC |