Example-Code in vb.net
|
12-08-2013, 11:16 PM
Post: #1
|
|||
|
|||
Example-Code in vb.net
Hey!
I just found LibSpotify today and I'm trying to use it in vb.net. But I don't even know how to import it or anything? Can you help me with importing it and maybe give me some examples how to do easy things with it? |
|||
14-08-2013, 10:06 AM
(This post was last modified: 14-08-2013 10:06 AM by andreww.)
Post: #2
|
|||
|
|||
RE: Example-Code in vb.net
Try having a look at this thread here: http://forum.openhome.org/showthread.php?tid=1113
It should help you follow the instructions to build ohLibSpotify.dll from the source files. (I'm afraid we don't have a prebuilt version to download.) Here's the example code from that thread re-written in VB.net. Create a new Windows Forms project, add a text box, set it to dock to the full window and turn on its vertical scrollbar. Add a reference to ohLibSpotify.dll, then use this code. When you run it, you'll need to make sure spotify_appkey.key is in the current directory, and that the native libspotify.dll is in the same directory as the executable. (This is an extremely bare-bones example. In a proper application you'd embed the app-key rather than read it from a file and you'd prompt the user for login credentials. You'd do something more interesting than just print libspotify's log messages. But this should get you up and running.) Code: Imports SpotifySharp |
|||
« Next Oldest | Next Newest »
|