All-
Does anybody know how shall I pass WORD value to the Win32 DLL function using Win32:API? I need to call DLL function which I import using its prototype as: Win32::API->Import("adc", "BYTE Init1AnalogOutput(DWORD dw_DriverHandle,WORD w_ChannelNumber,BYTE b_VoltageMode,BYTE b_Polarity)"); but once I call it with $Result2=Init1AnalogOutput($DriverHandle,0x00,0x00,0x02); I receive run time exception because of memory access violation. I suppose it is because of the WORD value which I am going to pass to the function as with other functions from this dll and with other value types I do not have any problems. This is under WinNT 4.0 with Perl 5.8.0 and Win32::API 0.41. Thanks, Bogdan **************************************************************************************** Note: The information contained in this message may be privileged and confidential and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. **************************************************************************************** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs