Hi, C code below seems straight forward but I am getting stuck on the
correct declaration of the argv parameter. any help please ?
correct declaration of the argv parameter. any help please ?
Code:
int __declspec(dllexport) __stdcall DBFtoCSV_Converter(HWND hwnd, int argc, char *argv[]); int main() { int n=0; char *params[10]; params[n++]=strdup(__argv[0]); params[n++]=strdup("source.dbf"); params[n++]=strdup("target.csv"); params[n++]=strdup("/ansi"); params[n++]=strdup("/overwrite=0"); return DBFtoCSV_Converter(NULL, n, params); }
Comment