John Oberg wrote:
> According to the Win32::API documentation, it's required to
> pack and unpack data going to/coming from a C structure.
> That makes sense, and I've gotten it to work, but I'm a little
> confused with a certain setup in a DLL I'm trying to access.
> In its function prototypes, I have the following:
>
> struct  GMWnv;
> typedef GMWnv *HGMNV;
>
> HGMNV __stdcall GMW_NV_Create();
>
> void  __stdcall GMW_NV_SetValue(HGMNV htmnv, const
> char* name, const char*value);

GMWnv does not seem a "regular" struct.
if everything it contains is a pointer, you can perhaps treat
it as a number.

> -----------------
> In Perl, I've written this:

try this instead:

  $GMW_NV_Create = new Win32::API("gm5s32",
      "GMW_NV_Create", [], N);
  $GMW_NV_SetValue = new Win32::API("gm5s32",
      "GMW_NV_SetValue", [N, P, P], V);

  $NewNV = $GMW_NV_Create->Call;
  $GMW_NV_SetValue->>Call($NewNV, "Name", "John");
  
hope this helps...

cheers,
Aldo



---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to