Hi everyone!
I have a problem when i call inkey function in c, inkey function is not a export function, so i can't invoke it directly, as "afuncs_h" information,i do it like this.
here is my code segment.

var result = 0;
STRING* Entry_str = str_create("#64");
if ( ImmIsIME(GetKeyboardLayout(0)) )
{

PFUN pf = (PFUN) engine_getfunc("inkey");
result = pf(Entry_str);


if ( INTV(result) == 13 )
{
//do something!
}
}

but the problem is that after execute
{ PFUN pf = (PFUN) engine_getfunc("inkey");
the pf has a values, but when execute
{ result = pf(Entry_str); }
it throw a exception, i do't know what's wrong i did.

is there anyone can help me?
thanks in advance!
sorry for my poor english!