Results 1 to 4 of 4

Thread: VB.net USB Radio HELP!

  1. #1
    Newbie
    Join Date
    Nov 2013
    Posts
    2

    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. #2
    Newbie
    Join Date
    Jun 2006
    Location
    Washington DC
    Posts
    24
    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.

  3. #3
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,852
    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

  4. #4
    Newbie
    Join Date
    Nov 2013
    Posts
    2
    Ah yeah!!

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

    Cheers guys for the help!

Similar Threads

  1. Directed HD Radio Causing static in factory radio
    By bchiang in forum Input Devices
    Replies: 2
    Last Post: 09-28-2011, 06:10 PM
  2. Replies: 4
    Last Post: 06-28-2008, 10:32 PM
  3. Replies: 3
    Last Post: 06-02-2008, 11:16 AM
  4. Hauppague Wintv/Radio OWNERS- Resuming radio play?
    By live2themaxuk in forum General Hardware Discussion
    Replies: 5
    Last Post: 01-29-2005, 06:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •