visual studio - Passing C++ structure pointer from Perl to arbitary dll function call -
I am using the Win32 :: API which calls a Pushable function exported in a DLL which is C + + Accepts composition indicator
struct PluginInfo {int nStructSize; Int nType; Int nVersion; Int nIDcode; Four SJN [64]; Four Susvenders [64]; Int nCertificate; Int nMinAmiVersion; };
To create the structure we need to use the "pack" function and require to pass any argument
my $ Name = "" x64; My $ seller = "" x64; My $ pluginInfo = pack ('IIIIC64C64II', 0,0,0,0,0,0, $ name, $ seller, 0,0);
This structure is not well-formed.
It seems that the pending argument that applies to C will interlock many of those arguments.
No one, passport to call this structure form Pearl and Dell call
Thanks in advance,
Naga ray
Z
(NUL-padded string), as
my $ pluginInfo = pack ('IIIIZ64Z64II', 0,0), 0,0, $ name, $ Seller, 0,0);
In addition, take a look, which is part of the Win32 :: API module.
Comments
Post a Comment