Help on Win32 API
- From: jis <jismagic@xxxxxxxxx>
- Date: Wed, 20 Jun 2007 13:53:31 -0000
Hi,
I have a dll by name AduHid.dll.
There is a function with prototype
void * _stdcall OpenAduDeviceBySerialNumber(const char*
psSerialNUmber,unsigned long iTimeout);
I used the following perl code to call the above function
use Win32::API;
my $function = Win32::API->new(
'AduHid.dll','int OpenAduDeviceBySerialNumber(const
char* psSerialNUmber,unsigned long iTimeout)' );
my $return = $function->Call("A03744",0);
But i get an error
1. unknown parameter type const and unsigned
2. Argument A03744 isnt numeric in subroutine entry.
I tried removing const and unsigned.Then I got an error
"Modification of read only value attempted".
Where am i going wrong?
Please advise.
regards,
jis
.
- Follow-Ups:
- Re: Help on Win32 API
- From: Mumia W.
- Re: Help on Win32 API
- Prev by Date: Installation error for module in CentOS 5.0 for HTML::Mason
- Next by Date: Re: Help on Win32 API
- Previous by thread: Installation error for module in CentOS 5.0 for HTML::Mason
- Next by thread: Re: Help on Win32 API
- Index(es):
Relevant Pages
|