Hi,

I am calling a dll function that returns a string in VB. In the dll I am returning a BSTR.
But in VB i get only the first letter of the string
The function is declared in VB as

Declare Function GetFileName Lib "MyDll.dll" () as string




And I in the code I am calling

Dim strTemp as string
strTemp = GetFileName




How can I get the whole string ?