c# are these parameters passed to c++ dll function correct? -
c# are these parameters passed to c++ dll function correct? -
hi have 3rd part dll functions create request dvr...i tried functions got wrong results...i don't know if i'm wrong or dll have problems.. dll docs:
int winapi tvcc_get_rec_days(int server_handle,struct photographic camera *video_camera,char **days,int *size);
char **days should not allocated character pointers array contain days list int *size length of array
i declared function in c#
[dllimport(lib, entrypoint = "@tvcc_get_rec_days$qqsip6camerappcpi")] static public extern int tvcc_get_rec_days(int server_handle,ref photographic camera video_camera,ref char*[] days,ref int size);
now if phone call function this:
static char*[] days; static int size; int returnvalue = gamssdk.tvcc_get_rec_days(sh2,ref cameras[1],ref days,ref size);
i right homecoming value (function works good), size 104 days not 104 array!! days.length = 1 if seek read first cell null exception...i tried various modification in days , if print cell 0 or unusual symbols...i thought address of arrays in case don't know how it... idea?
c# c++ pointers dll parameters
Comments
Post a Comment