6 messages in net.java.dev.jna.usersSome questions for jna
FromSent OnAttachments
Daniel KaufmannJun 10, 2007 5:41 pm 
Timothy WallJun 10, 2007 6:47 pm 
张久安Jun 10, 2007 7:40 pm 
Timothy WallJun 10, 2007 8:20 pm 
Daniel KaufmannJul 12, 2007 6:20 am.java
Timothy WallJul 12, 2007 8:25 am 
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:Some questions for jnaActions...
From:张久安 (zja@163.com)
Date:Jun 10, 2007 7:40:23 pm
List:net.java.dev.jna.users

Hello, I am very glad to see this project, and with this project i can run
some native function which in *.dll(windows) freely. But, also there some
problem i meet.For example: (hello.dll) struct student{ int
age; char * name; }; void print(struct student stu) {
printf("name is: %s, age is%d\n", stu.name, stu.age); }I am very glad to
say it work properly, and i had a try. But if i change the above program to:
(hello.dll) struct student{ int age; char * name;
void show(); }; void student::showInfo() { printf("name
is: %s, age is%d\n", name, age); } void print(struct student stu) {
stu.show(); }then, i can't make it work properly with jna. I wonder is
there some idea for me to change the class Structure to support the native
struct with function. Thanks all.2007-06-11
:Zhang Jiuan