My module,
Win32::SystemInfo, uses a DLL to determine processor speed on Windows9x systems. This is not an autoloaded DLL, the module simply makes a few
Win32::API calls to get the correct values.
I recently received an email from someone who's using the module in a Windows 98 environment. The script that he has written runs fine normally, but when it's compiled into an executable using Perl2exe, the processor speed is not reported.
This is obviously a problem of the compiled script not being able to see the DLL, since Perl2exe only includes autoloaded DLLs. The problem I'm having is in getting Perl2exe to compile the DLL into the executable so that it works correctly.
I tried this first:
perl2exe script.pl d:\perl\site\lib\win32\cpuspd.dll. The resulting executable was larger by the size of the DLL, but the module still couldn't locate it. The only way that I have been able to get the executable to work correctly is to comile the script into an executable, then create a directory structure called PERL2EXE_STORAGE/Win32 in the same directory where the executable is and place the DLL down in the directory. This is an ugly solution.
Is there any way I can force Perl2exe to include a DLL and give it a specific path? Is this something I should be taking up with the Perl2exe developers since it appears to be a missing feature?
GuildensternNegaterd character class uber alles!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.