Automation with VB.Net
Posted: 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:
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)?
Code: Select all
Dim Dim MySDB As New SongsDB.SDBApplication() MySDB.ShutdownAfterDisconnect = False