Hi,
I have writing the code in my Dll as follows,
//declare the bufferdata
BYTE bufferData[20480];
//retrieving the picture from the dll
prResponse prSTDCALL MyViewFinderFunction(
prHandle CameraHandle,
prContext Context,
prUInt32 Size,
prVoid *pVFData
)
{
memcpy(bufferData,pVFData,Size);
FILE *fp;
imageSize=Size;
fp=fopen("liveimage.jpg","wb+");
fwrite(bufferData,imageSize,1,fp);
fclose(fp);
}
pVFData is the retrieving the data from the DLL.
and then I have get the bufferdata from the another function as,
BYTE NewDemoDll::RetLiveImg()
{
FILE *fptr;
//imageSize=Size;
fptr=fopen("liveimage1.jpg","wb+");
fwrite(bufferData,imageSize,1,fptr);
fclose(fptr);
return bufferData[20480];
}
and I have invoke that NewDemoDll::RetLiveImg() function from the java.
But I didn't get the picture.
what is the problem?. Anything problem in above code. Please give the alternative way to pass the array from one funtion to another function.