What does the function PR2_Ptr do?
What does the function PR2_Ptr expect to be passed as arguments?
I suspect the problem is that you pass PR2_Ptr the pTemp parameter which is a NULL pointer, I think you probably need to allocate memory to it first.
Thanks for your reply.
PR2_Ptr is a Function Prototype. I declare that below way,
typedef int (CALLBACK* PROC2_IP) ( IDS_HANDLE hHandle, int numFingers, CaptureData pData[], BYTE* &pTemplate, unsigned int &size, unsigned char &quality, bool bQuick, int MaxWidth, int MaxHeight);
HINSTANCE hinstLib_IP;
INIT_IP IP_InitPtr;
PROC2_IP PR2_Ptr;
PR2_Ptr = (PROC2_IP) GetProcAddress(hinstLib_IP, "process2");
if (fRunTimeLinkSuccess = (PR2_Ptr != NULL))
(PR2_Ptr);
int err = PR2_Ptr(IPhandle, 1, Data, pTemplate, size, quality, FALSE, 500, 500);
txt_ChkRet->Text = err.ToString();
I have used above code. How to allocate the memory to pTemplate?
Please suggest me.