Automation with VB.Net

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

Automation with VB.Net

Postby lvstephanie » Thu Mar 03, 2016 3:19 pm

I am trying to create an app. using VB.Net, but even with the most basic stuff, I'm having problems... I have made a Reference to the MediMonkey Library in my program, and am trying to create the application object using:
Code: Select all
Dim     Dim MySDB As New SongsDB.SDBApplication()
    MySDB.ShutdownAfterDisconnect = False


But in the 2nd line, MySDB has a blue squiggle indicating the error: "Declaration Expected". I thought that the 1st line should have declared that variable, so I'm confused as to why I'm getting that error. I've also tried using the late-binding method shown on the website using CreateObject() but that also yields the same error. Do I need to have MM running (I didn't think so, since the documentation says that if it is not currently running, that it will launch the program)?
lvstephanie
 

Re: Automation with VB.Net

Postby lvstephanie » Thu Mar 03, 2016 4:29 pm

Nevermind. Very stupid mistake in my programming.
lvstephanie
 


Return to MediaMonkey 4 Addons developer forum

Who is online

Users browsing this forum: No registered users and 5 guests