[jslibs:337] jsffi with structures

9 views
Skip to first unread message

Michael I

unread,
Apr 26, 2010, 2:59:37 AM4/26/10
to jslibs
Hi

I have used jsffi with simple data with success :)
Now I'am trying to call function with following structure:

struct LoginStruct {
int version;
char user[50];
char password[50];
};

LoginStruct ls;

ls.version = 1;
strcpy_s(ls.user, 50, "uuu");
strcpy_s(ls.pass, 50, "ppp");

Login(&ls);

Is it possible to define and call this function from jsffi ?

Michael

--
Group jslibs - http://groups.google.com/group/jslibs - jsl...@googlegroups.com
Unsubscribe: jslibs-un...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages