Pssing string to function in C
Good morning,
I have a program made in VB and delphi that calls a C dll function which must handle a string.
So, the function is more or less like this:
Code:
int32 function1(double p1, char *path)
My problem is that it seems that when I use the variable path inside function1 I get one character only... So, if I pass for instance "c:\myfolder" I get "c". Must I define some other char to get path full value? Like:
Code:
char temp[50] = path;
?
Can someone help me out here?
Regards,
JKepler