|
-
November 13th, 1999, 02:01 AM
#1
Passing string to dll
I'm passing some strings to a 'C' dll (which is written by myself) that expects char* argument . it's passed as 'byval string' argument. The data to be passed is not of fixed length so the string is not fixed length. but in this process sometimes it's not passed properly and the data is a garbage.
What can be other way to pass this string properly.
-
November 14th, 1999, 01:40 AM
#2
Re: Passing string to dll
In your C++ code use BSTR instead of char*
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
|