I think I found the solution to your problem. I had the same problem, but I used HCNetSDK C# wrapper, and the same error occurred to me. This is the c# code I used to call NET_DVR_RealPlay_V30 function:
private void TakeVideoForLiveStreaming()
{
try
{
NET_DVR_CLIENTINFO clientinfo = new NET_DVR_CLIENTINFO();
clientinfo.hPlayWnd = liveViewPicture.Handle;
clientinfo.lChannel = ChanelNumber;
clientinfo.lLinkMode = 0;
clientinfo.sMultiCastIP = null;
HikVisionSDKCSharpWrapper.RealDataCallBack_V30 RealData = new HikVisionSDKCSharpWrapper.RealDataCallBack_V30(RealDataCallback);
IntPtr pUser = new IntPtr();
RealHandle = HCNetSDK.NET_DVR_RealPlay_V30(UserId, ref clientinfo, RealData, pUser, true);
if (RealHandle == -1)
{
MessageBox.Show(string.Format("Play failed, error code: {0}", HCNetSDK.NET_DVR_GetLastError()));
return;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
public void RealDataCallback(int lRealHandle, uint dwDataType, byte[] pBuffer, uint dwBufSize, IntPtr pUser)
{
try
{
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
On call of this function I had error 64 ("Failed to load player SDK"). What I did, and it seemed to work for me is that I downloaded VSPlayer for Windows V7.2.0 from this link:
http://www.hikvision.com/europe/tools_82.html#prettyPhoto
After I installed this application, I copied all the DLLs that were exported to 'C:\Program Files (x86)\VSPlayer' folder after installation, and pasted them at the same location where my HCNetSDK.dll was located inside of my app. When I run my app again, error disappear and I got my live video inside of my picture box.