Recent content by curiousDev

  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...
Top