Hi peeps,
well I've looked and looked + tryed debugging but I'm not getting anywhere fast :-(
I'm trying to import a usb radio driver and I'm 99% there. I can turn it on / off and get / set the freq.. but I'm struggling to get the rds name from it. The VB code for the function is ...
Public Function WVB_GetModuleName() As String
Dim sBuffer As String * 256
Dim iBufferLen As Integer
Dim lRet As Long
If (VB_GetModuleName(sBuffer, iBufferLen)) Then
WVB_GetModuleName = Left(sBuffer, iBufferLen)
End If
So.. its falling over on the As String * 256. Now I've tried afew different things but they are still returning either a string full of blanks or nothing at all.
I've tried Dim sBuffer As String = Space(256) but that just returns a space filled string.
been at it for a few hours now and drawn a blank. When debugging the iBufferLen does come back with different values so that bits working.. just the sBuffer.
Any help would be greatly appreciated.
thanks
Steve
well I've looked and looked + tryed debugging but I'm not getting anywhere fast :-(
I'm trying to import a usb radio driver and I'm 99% there. I can turn it on / off and get / set the freq.. but I'm struggling to get the rds name from it. The VB code for the function is ...
Public Function WVB_GetModuleName() As String
Dim sBuffer As String * 256
Dim iBufferLen As Integer
Dim lRet As Long
If (VB_GetModuleName(sBuffer, iBufferLen)) Then
WVB_GetModuleName = Left(sBuffer, iBufferLen)
End If
So.. its falling over on the As String * 256. Now I've tried afew different things but they are still returning either a string full of blanks or nothing at all.
I've tried Dim sBuffer As String = Space(256) but that just returns a space filled string.
been at it for a few hours now and drawn a blank. When debugging the iBufferLen does come back with different values so that bits working.. just the sBuffer.
Any help would be greatly appreciated.
thanks
Steve