Posted: Tue Sep 04, 2007 2:18 pm
Do you know how to convert the Delphi example in vb.net to test it in Visual Basic Express 2005?
How do I create the SongsDB.SDBApplication object?
How do I create the SongsDB.SDBApplication object?
The Music Manager for Serious Collectors
https://mediamonkey.com/forum/
Code: Select all
' Blurb
Option Explicit
Sub onStartUp
dim podcasts, podcastOptions
set podcasts = CreateObject("mmPodcasts.PodcastsPlugin")
set SDB.objects("PodcastsPlugin") = podcasts
podcasts.init SDB, Script
' Register event handlers
Script.RegisterEvent SDB, "OnChangedSelection", "handleChangedSelection"
End Sub
' Retrieves the PodcastsPlugin object
Function podcasts()
set podcasts = SDB.objects("PodcastsPlugin")
End Function
''''''''''''''''''''''''''''''''''''
' Event Handlers
''''''''''''''''''''''''''''''''''''
Sub handleUpdateDirectory(control)
podcasts().updateDirectory
End Sub
Sub handleDownloadPodcasts(control)
podcasts().downloadPodcasts
End Sub
Sub handleFillTracks(node)
podcasts().populateChannel
End Sub
Sub handleChangedSelection
podcasts().selectionChanged
End Sub
Sub handleImport
podcasts().importOPML
End Sub
Sub handleExport
Msgbox "Handle Export"
podcasts().exportOPML
End Sub