![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
"pointers" for calling a DLLby chinman (Monk) |
on Feb 11, 2003 at 03:41 UTC ( [id://234310]=perlquestion: print w/replies, xml ) | Need Help?? |
chinman has asked for the wisdom of the Perl Monks concerning the following question:
Purveyors of Perl Wisdom,
I'm trying to access a Win32 DLL using the Win32 OLE module. Some test code is shown below.
Basically, it looks like I can create the object ok (line 15). I also think that I'm opening the rawfile ok (line 23), since no errors are returned. I can't seem to get the other methods to work. I think, the problem is that the other methods associated with this DLL require the variables to be pointers. For example, the GetFileName method that I've attempted to implement above actually appears to require a pointer to a string. For example, the function call from the OLEview for the GetFileName method is:
Is there a way to implement these calls with Win32::OLE, or do I need to use the Win32::API or Win32::API::Prototype? Some of the other methods require pointers to longs, doubles, or variants. Any thoughts (or pointers) would be greatly appreciated. Regards,
Back to
Seekers of Perl Wisdom
|
|