try This
declare a new API function
it's a variant on copymemory, declare a fixed length string (I think 15 characters long should be enough) when you call the string from pointer function put your string in dest, the returned pointer in string pointer and the length you fixed the string at in stringlengthCode:Private Declare Function StringFromPointer Lib "Kernel32" Alias "RtlMoveMemory" (ByVal Dest as string, ByVal StringPointer as long, Byval StringLength as Long)
I haven't tried this so It might not work, I suspect you'll have to use VB's strConv function and convert it to unicode and you might get a few random characters at the end.
Hope this helps




Reply With Quote