Automation with VB.Net

Post a reply

:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: Automation with VB.Net

Re: Automation with VB.Net

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

Nevermind. Very stupid mistake in my programming.

Automation with VB.Net

by 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)?