Hello
Has anyone tried native programming on simulator?
Now we can pass a structure of parameters to the native code as
userdata.
I want to pass a number of buffers to the code.
So I declare
struct s1
{
long *v1;
long *v2;
};
in my palm program.
Also I have to access this structure in my dll, so i use this
declaration.
But if i try to access *v1 in dll then simulator crashes.
If i declare it
struct s1
{
long v1[5];
long v2[1];
};
Then I can acess v1[0], v1[1] etc.
Does that mean I have to declare all my buffers as arrays?
But I have huge buffers so can be declared on stack.
Can anyone help?
Regards
Salil
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/