|
-
September 4th, 2001, 03:33 PM
#1
String As Byte?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|