Re: dynamic loading of dll
Your function pointer pfunct1 takes a void as the parameter. Is the function in the dll (JNI_GetDefaultJavaVMInitArgs) of the same type? This means the number of parameters have to be correct and the parameters should be of the same type. Als the return type of the dll function and the function pointer should be the same.
Re: dynamic loading of dll
Hey thanks for a prompt reply
I double checked it, its all same but still the error persists!!
Re: dynamic loading of dll
You are passing some argument to the function pointer while you declare it as being void (having no parameters).
res=(*Func1)(&vm_args); // ERROR SHOWING IN THIS LINE
Re: dynamic loading of dll
No discard my previous post, i see you declare it as void*. Try casting the argument to void* ?
Re: dynamic loading of dll
Off the top of my head you should just call
Func1(&vm_args);
Re: dynamic loading of dll
since there are no more replies I take it that solved it. Usual.