Dim gFaxServerName as String
gFaxServerName = "\\Server02"
If gSystemLoc = "Local" Then
oFaxServer.Connect("")
Else
Dim bstrPtr as IntPtr
bstrPtr = Marshal.StringToBSTR(gFaxServerName)
oFaxServer.Connect(bstrPtr)
Marshal.FreeBSTR(bstrPtr)
End If
... Everything else from here on works fine
My VB sucks, so don't hold me to that compiling. If the input function requires a BSTR, then the above should get you what you need. You will need to import the
System.Runtime.InteropServices
namespace.