Automation with VB.Net

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

Moderators: Gurus, Addon Administrators

lvstephanie

Automation with VB.Net

Post by lvstephanie »

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

Post by lvstephanie »

Nevermind. Very stupid mistake in my programming.
Post Reply