Hi,
I need to link vb code to a C dll, but I have a problem to convert one of the argument of a function.

The function is declare like this in .pas:

test(Filename as Byte)

and like this in .h:

test(char *Filename);

Now I want to pass something like c:\test.txt in parameter, but I always get a run-time error '13' Type Mismatch.

How can I convert a string in byte to pass ByRef to the dll?

Thanks,
Michael