1 message in net.java.dev.jna.users[jna-users] map byte[] in Java to UC...
FromSent OnAttachments
neo andyApr 27, 2009 9:37 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] map byte[] in Java to UCHAR* in C Actions...
From:neo andy (neo_@yahoo.com)
Date:Apr 27, 2009 9:37:04 pm
List:net.java.dev.jna.users

Hi all,

       I am trying to call two functions in a Dll  which reads and writes data
to  device UINT __stdcall ReadDev(UCHAR* buf, UINT64 length); UINT __stdcall WriteDev(UCHAR* buf, UINT64 length);

I am reading a file into a byte[] array before calling WriteDev of Dll.How do i
convert byte[] to UCHAR*. In ReadDev  I need to convert UCHAR* into java byte[] array.

How do it using JNA? Please help.

Regards, neo