I am trying the simplist of .NET addins using Visual BASIC Studio 2005. I am not an object oriented programming expert --- using this as a learning experience!
I have boiled down an example into the following to simply toggle the screen between fullscreen and windowed...I have followed the instructions of the C# sample, incluing putting the .dll in the Addins directory under the GUID, making the dll COM visible etc. Here is my visual basic code:
============================
Code:
Imports System.Runtime.InteropServices
Namespace PDAKey
<GuidAttribute("0304F473-515A-45ab-BE2E-E93419F21CB8"), ProgId("StreetDeck.PDAKey"), ComVisible(True)> _
Public Class Class1
Implements StreetDeck.IDualStreetDeckAddin
Dim app As StreetDeck.StreetDeckApp
Public Sub OnConnection(ByVal Application As Object, ByVal eConnectMode As StreetDeck.enumAddinConnectMode) Implements StreetDeck.IDualStreetDeckAddin.OnConnection
app.SendFunction(StreetDeck.enumSDFunctions.eFunctionToggleFullscreen)
End Sub
Public Sub OnDisconnect() Implements StreetDeck.IDualStreetDeckAddin.OnDisconnect
End Sub
End Class
End Namespace
=========================
The app builds and is in the addins directory under the GUID. When I run StreetDeck and look under Digital Mods within StreetDeck, it says that the Digital mod that I have created is 'stopped'
Firstly, is my syntax correct for the above code, particular for the 'DIM app..' statement and use of 'app' for the app.sendfunction call...
I have only created a script project withn StreetDeck..it is not clear to me what magic within StreetDeck looks within the 'addins' directory under the GUID to pull in the dll. I have not defined a scripted overlay or a module as I am not intending to script anything within StreetDeck (for this simple test case). I simply want the addin to be loaded, toggle the screen to confirm that I am connecting 'all of the dots correctly'
I am sure others will want to use Visual BASIC to create a .NET addin, and hopefuly this thread will provide a tutorial of benefit.
Thanks