J
John Slagle
I have an old Win32 Dll that want to pass a string back to my app
via one of the parameters (not the return value).
I am seeing one way to do this is to dereference a StringBuilder
instance. Is this possible in VB.NET?
Another possible way might be
<MarshalAs (UnmanagedType.VBByRefStr)>
Does anyone have any experience with this?
The documentation for the DLL includes a VB6 decleration
containing keyword 'ByVal' for the string parameter, so I assume
its not passing a BSTR, but rather an address for a null terminated
series of ASCII characters.
I cannot locate an example within the DLL's documentation to
verify that a string has to be presized within VB6 prior to calling
the DLL.
Any insight appreciated.
-John Slagle
-Denver, CO
via one of the parameters (not the return value).
I am seeing one way to do this is to dereference a StringBuilder
instance. Is this possible in VB.NET?
Another possible way might be
<MarshalAs (UnmanagedType.VBByRefStr)>
Does anyone have any experience with this?
The documentation for the DLL includes a VB6 decleration
containing keyword 'ByVal' for the string parameter, so I assume
its not passing a BSTR, but rather an address for a null terminated
series of ASCII characters.
I cannot locate an example within the DLL's documentation to
verify that a string has to be presized within VB6 prior to calling
the DLL.
Any insight appreciated.
-John Slagle
-Denver, CO