Announcement

Collapse
No announcement yet.

VB.net USB Radio HELP!

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • VB.net USB Radio HELP!

    Hi guys.

    I'm new to the forum

    Currently working on a custom carputer system. The software is being written in VB.net and it's all going well except for the following issue. I have a silab usb FM radio dongle and I'm trying to write the code to use the USBradio.dll from https://code.google.com/p/silabsradiodll/ but I don't know how to get the code to work in VB.net as the examples I've seen are all VB6. The code to load the DLL works fine but that's it. I've seen people on here saying that they've managed to get it working ok with vb.net but no one has posted any clues on what parameters the functions in the DLL need.

    Does anyone have a example written in vb.net they would care to share or point me in the right direction?

    Cheers.

  • #2
    The source code is all available. If you checkout https://code.google.com/p/silabsradi...dll/ReadMe.txt and browse around you can see what all of the methods are and what the parameters are.

    Comment


    • #3
      Into the USBRadio.h file are the dll export.
      VB.NET example for the line: USBRADIO_API bool __stdcall HWInit();

      <DllImport("USBradio.dll", CallingConvention:=CallingConvention.Cdecl)> _
      Private Shared Function HWInit() As Boolean
      End Function

      You can also create a Module!
      Module MyModule
      Declare Function HWInit Lib "USBradio.dll" () As Boolean
      ...
      End Module
      Last edited by pierrotm777; 11-06-2013, 06:40 AM.

      Comment


      • #4
        Ah yeah!!

        Got it now. I'm currently building the module at the moment.

        Cheers guys for the help!

        Comment

        Working...
        X