I am having problems with executable files I create using pp that include the Win32::SerialPort module.
About my system:
- Windows XP SP1
- ActiveState Perl 5.8.4 build 810
- PAR v0.87
- Win32::SerialPort v0.19
I create the executable using pp with an invocation like "pp -o foo.exe myscript.pl". Everything seems to work normally. When I run the executable on my system or other WinXP systems, everything works as expected.
The problem is that when I try to run this same executable on other versions of windows, such as Win98 or Win2000. The script thinks it is able to open the comm port as usual, but no data shows up.
One user reported that he was able to get the script to work on Windows 2000 by copying kernel32.dll from C:\WINNT\SYSTEM32 to C:\WINDOWS\SYSTEM32, so that the location matches a standard XP install. I haven't been able to verify this, so it may be a red herring.
If the location of the Kernel32.dll file is the problem, is there something I can do in the build process to specify the windows environment variable %WINDIR% as opposed to C:\WINDONT in the path?
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.