I have been give the task of writting a perl script that interfaces with a dll. I looked high and low and found Win32::API. Which seems to slove my problems. I would happily take any other suggestions on how to interface a dll. I downloaded, nmake'd etc. the API module. I then moved the dll to the WINNT/system32 and to the perl/lib/auto/Win32/api directory. I then tried to run my simple script
use Win32::API; #pretty simple.
I got an error stating that could not find the PerlCRT.dll. I then down loaded and placed the PerlCRT.dll in the WINNT/system32 directory and put the PerlCRT.lib in the perl/lib/auto/win32 directory. I ran the above script again. I didn't get an error on the command line I did how ever get a memory error in the lovely window pop-up box.
The instruction at "0x10002309" referenced memory at"0x08aed2a4". The memory could not be "read".
Click on ok to terminate applicaion. Blah blah blah
Does anyone know how to fix this problem? OR a fail safe way of installing PerlCRT and Win32::API? Or a better way of interfacing a DLL.
Thanks in advance for the help.
Brett
Edit by tye
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.