
Sending strings hich recieve data to API calls ?
Hi,
I'm using VB 5 and would like so use functions such as
GetPrivateProfileString. I'm declaring the function OK, and the function
call works. However, I do have a problem with the returned data ( in one of
the parameters) -
With GetPrivateProfileString, If I Dim lpReturnedString as a String I get an
error ( which seems to make sense, as the API call requires a C
string/storage space)
If I dim lpReturnedString Like this -
Dim sTemp As String * 255
The function call works, but the string contains unprintable chars after the
correct data
Any help would be appreciated.
Steve