2 messages in net.java.dev.jna.usersRe: [jna-users] help on File *fp in n...
FromSent OnAttachments
dandelion_liApr 22, 2009 6:00 pm 
Daniel KaufmannApr 24, 2009 4:17 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:Re: [jna-users] help on File *fp in native libraryActions...
From:Daniel Kaufmann (dani@gmail.com)
Date:Apr 24, 2009 4:17:26 pm
List:net.java.dev.jna.users

If you don't need to access the fields or allocate directly a FILE then you can map it to a Pointer (or in case you also want it to be more type safe you can use a subclass of PointerType). Otherwise you should map it to a subclass of Structure. Look at jna site for examples. -Daniel

On 4/22/09, dandelion_li <dand@163.com> wrote:

Dear sir: How can I invoke the following function in Java using JNA: INT32 app_log_save(U_INT32 unit,FILE *fp)? This function saves the log configuration into the File *fp. I am new to JNA, but I can not figure out how to map File *fp into any data type in Java. Thanks in adavnce!

With my best regards.

Qingyu Li April 23rd.

------------------------------ 网易邮箱,中国第一大电子邮件服务商 <http://email.163.com/>