manojghosh has asked for the wisdom of the Perl Monks concerning the following question:
I have following function in win32 DLL
BSTR _stdcall dec(unsigned long isize,long* iReturn);I want to call this function in Perl script. I have tried different options in Perl but stuck on this. Please help me out and provide your valuable solutions. I have tried the following code but did not get success:
#!/usr/bin/perl use Win32::API; my $xy=0; my $cc=\$xy; Win32::API->Import('MyDLL', 'char* dec(long a,long* b)')or die $^E; my $var=dec(4,$cc); printf("%s",$var);
So how to get the return string using char*
Thanks in Advance, :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Win32::API and BSTR
by ikegami (Patriarch) on Mar 01, 2011 at 08:28 UTC | |
by locked_user sundialsvc4 (Abbot) on Mar 01, 2011 at 15:16 UTC | |
by ikegami (Patriarch) on Mar 01, 2011 at 16:47 UTC | |
|
Re: Perl Win32::API
by Anonymous Monk on Mar 01, 2011 at 07:50 UTC |