Search results

  1. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hey Adam I did some test and for now I can say I found a solution for it. Tried few things most of them wasnt working at all (ending up with the same error which you came with here). I noticed that problem is with simple type like uint, int and so on when we try to nest arrays or struct in the...
  2. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hello Adam You are probably right about it (that it's not a full union anymore). Can you provide more details where you are going to use it since the sample wasnt so accurate also there was 'using static' which could cause problem when you tried to make instance in main? If that is not a...
  3. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hey Adam Guttman. I didnt check it on my own yet but from an exception which you posted I can suspect that [FieldOffsetAttribute(0)] for dwLocalChannel is wrongly calculated. Since both of 'structures' (NET_DVR_CHANNEL and byRes[152]) have the same size it seems that dwLocalChannel causing...
  4. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi petkoo, I believe you should use byte[] instead of string. Convert the string to byte array then to IntPtr and NET_DVR_SendRemoteConfig(int lHandle, uint dwDataType, IntPtr pSendBuf, uint dwBufSize); Sorry but in this moment i dont have time to test it out on my own. Best regards.
  5. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    No problem for me. Take a look on my test solution.
  6. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi petkoo and ARJunior, Good job with solving your problem ARJunior. I tried to implement it on my own. Unfortunately, I am getting the same result in both cases, like for problem which ARJunior presented few posts ago, error 23 (Device does not support this function.). I am unable to check...
  7. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Can you write me steps which I need follow to get this info by from ivms4200? I wasnt using this software before so I want to be sure I will find the same functionality which you would like to achive. Then I will be able to take a look when find some spare time. Best regards.
  8. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hello again ARJunior, I am not sure if that is error since it's c++. Dll header definition has BYTE byRes1[3] while the one in programming manual has BYTE byUsed and BYTE byRes1[2] those two together is kinda BYTE byRes1[3]. If we use this structure as a pointer in call then that array...
  9. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi, Unfortunatelly my device doesnt support this funtionality. Here is what I have done, maybe it will help you somehow. structures definitions: public struct NET_DVR_CHAN_INFO { public uint dwSize; // Structure size public byte byValid...
  10. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hey ARJunior I checked the SDK and in my opinion you should use function called NET_DVR_GetDeviceConfig and structure which you have found is an output parameter LPVOID lpOutBuffer, BOOL NET_DVR_GetDeviceConfig( LONG lUserID, DWORD dwCommand, DWORD dwCount, LPVOID lpInBuffer, DWORD...
  11. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hey ARJunior, If you are getting RealPlay stream from Network Video Recorder (NVR/DVR) in my opinion it will be enough, there is no need to close and open connection to the same DVR between changing channels. But in case of connecting to diffrent cameras I would use also NET_DVR_Logout and...
  12. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Due the lack of time (again) i will simply share with you my test solution which I have made yesterday basing on your code. I tested it and it works fine for me so please check it and let me know if it's the same for you.
  13. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    What says error if result is -1 for RealPlay_V40? Also if you suspect that size of picture box is too small can you check with bigger size?
  14. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    I just looked at and tested out your code. I havent noticed initializing and login parts of your code like SDKMethods.NET_DVR_Init and NET_DVR_Login_V30 but I assume you did it in another place of ur program. By doing this you just got rid of your destination component for video which means...
  15. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    In this moment I dont have spare time to peek on ur piece of code. I will be able to look at this in 4-5 hours. Can you try my code with RealPlay_V40 from previous posts and then if it will work (which should since I tested it) compare it with yours? I am asumming you want to display this video...
  16. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi Jivakula, I already wrote a post about RealPlay_V40 check 1st page of this thread and you should find answer there. EDIT: Error 64 can be referring to missing HIK dll file. Make sure your file structure of HIK dlls is ok. Somewhere in previous posts I attached screenshots of this. Also keep...
  17. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hello wolfblaster, Try this code. dll import: [DllImport(@"\Hikvision\CppDlls\HCNetSDK.dll", EntryPoint = "NET_DVR_GetSTDAbility")] public static extern bool NET_DVR_GetSTDAbility(int lUserID, uint dwAbilityType, ref NET_DVR_STD_ABILITY lpAbilityParam); structure definition: public struct...
  18. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hello DannyDS, Like for me it looks like an error referencing to missing dll. Check previous posts I've made a screenshot of directory structure.
  19. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi Mechalec, Try use NET_DVR_SaveRealData or NET_DVR_SaveRealData_V30 it requires to open realplay though but I am sure that is what u are looking for.
  20. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hey Vilius, Cannot you just call method NET_DVR_CapturePicture_V50 n times to get more frames? I wasnt trying trough but i think it might be a solution at least partial. Similar to V50 is also NET_DVR_CapturePictureBlock_New so it might come with help.
  21. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    I got it working. It's kinda tricky to make it work properly. Dont know why you didnt use normal version of NET_DVR_CapturePicture instead of NET_DVR_CapturePicture_V50 but i believe you had some reasons. The NET_DVR_CapturePicture is much more easier and could be done within 5 mins. Anyway I...
  22. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Is it working for you in c++? I was trying to do this and having soem problems as well. I found a method NET_DVR_GetDeviceAbility which should be able to check if some functionalities are available on certain device but i am having problems with this as well.
  23. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hello again, As I promised in previous post here is a small mapper which I have made for my purposes. HIK SDK C++ - C# WORD - ushort DWORD - uint LONG - int char* - string BYTE - byte...
  24. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    I am pretty sure that you have some problems with dll import. parameter types are incorrect. I will try to fix it for you but i dont have oportunity to test it in this moment. [DllImport(DLL)] (i am not sure about 'ref byte[] sPicBuffer' can be a 'ref string sPicBuffer' or just 'string...
  25. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Can you provide some more details? Best to see a part of code which you use for that. For now I can give u small tip it was even mention in code snippets by Vilius and me before in this thread. I am not sure if it will help you need to test it out. public int dwStreamType; // Stream type 0-main...
  26. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    I also found two other methods NET_DVR_CapturePicture and NET_DVR_CapturePictureBlock it requires live stream handle so maybe that will be better approach for you? Both of them have also _V50 version e.g. NET_DVR_CapturePicture_V50
  27. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    I think you will need to use NET_DVR_CaptureJPEGPicture_NEW or NET_DVR_CaptureJPEGPicture method from SDK.
  28. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    you're welcome :) I also learnt new thing. Now i know it works for camera as well.
  29. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Of course, try my code. Just keep in mind i've made it for DVR i dont know if there is any diffrence for direct connection to camera. import of DLLs: #region RealPlay_V40 public delegate void fRealDataCallBack_V30(int lRealHandle, uint dwDataType, byte[] pBuffer, uint dwBufSize, IntPtr...
  30. C

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    If my mind doesnt trick me that error also showed up when one of dlls of SDK was missing make sure u have them in right places. Here i provide u my folders and file structures. Also i dont know if x64 version arent causing problems i am using x86. EDIT 1: I honestly admit i wasnt trying to...
Top