Results 1 to 9 of 9

Thread: Problem creating .VB.net plugin

  1. #1
    And then I was mod. Tidder's Avatar
    Join Date
    Sep 2003
    Location
    New Mexico, USA
    Posts
    4,207

    Problem creating .VB.net plugin

    I don't think you can make plugins without Qt. I built one in VB.net and I get this error. "is not a valid Qt plugin" whenever CarPal tries to load it.
    Tidder

    Try RevFE
    The best resurrected frontend I've ever used, period.

  2. #2
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127
    Right, it dosent load the plugin directly, the DotNetManager does. Are you seeing this error in the debugOutput file? If so this is normal.


    Qt first tries to load it, and when it fails it passes it off to the DotNetManger to try and load.


    For future reference, don't post in closed topics :P
    "stop with the REINSTALLS, what do you think we got some lame-o installer!!!" - mitchjs
    RevFE
    My Shop

  3. #3
    And then I was mod. Tidder's Avatar
    Join Date
    Sep 2003
    Location
    New Mexico, USA
    Posts
    4,207
    There really should be a warning when a mod posts in a closed topic. It didn't look any different than a regular topic.

    Yeah I see it in the debugOutput file. But my plugin (or your included sample plugin) isn't working. I think I got the sample code converted to VB ok, but I may just be an idiot. I'll post it up later today.
    Tidder

    Try RevFE
    The best resurrected frontend I've ever used, period.

  4. #4
    And then I was mod. Tidder's Avatar
    Join Date
    Sep 2003
    Location
    New Mexico, USA
    Posts
    4,207
    Code:
    Imports System
    Imports System.Collections.Generic
    Imports InterfaceClasses
    
    Public Class Plugin
    
        Public Sub New() 'wtf is this for?
    
        End Sub
        Private _hostPlugin As InterfaceClasses.IPluginHost
        Public Function Name() As String
            'This MUST be a single word, no spaces and unique to your plugin
            Return "SampleVBPlugin"
        End Function
        Public Function Author() As String
            Return "Tidder"
        End Function
        Public Function Description() As String
            Return "A small sample VB plugin"
        End Function
        Public Function Version() As String
            Return "1.0.0"
        End Function
        Public Sub Initialize(ByVal host As InterfaceClasses.IPluginHost)
            _hostPlugin = host
        End Sub
        Public Sub passPluginMessage(ByVal sender As String, ByVal message As String)
            Try
                Dim ipcmsg As New IPCMessage(message)
                If ipcmsg.getClass() = "test" Then
                    If ipcmsg.getMethod() = "play" Then
                        _hostPlugin.passCoreMessage("SampleVBPlugin", "MediaEngine:media play")
                    End If
                End If
            Catch ex As Exception
                MsgBox(ex.Message)
    
    
            End Try
        End Sub
    
    End Class
    Tidder

    Try RevFE
    The best resurrected frontend I've ever used, period.

  5. #5
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127
    how do you know my plugin isnt working? You don't have a skin file that takes advantage of it do you?
    "stop with the REINSTALLS, what do you think we got some lame-o installer!!!" - mitchjs
    RevFE
    My Shop

  6. #6
    And then I was mod. Tidder's Avatar
    Join Date
    Sep 2003
    Location
    New Mexico, USA
    Posts
    4,207
    Reverse engineering... uhh... quantum physics... the alignment of the planets, err arora borealis?
    Tidder

    Try RevFE
    The best resurrected frontend I've ever used, period.

  7. #7
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127
    This issue has been fixed. Turns out you have to go into project properties, and delete the "Root Namespace:" field.
    "stop with the REINSTALLS, what do you think we got some lame-o installer!!!" - mitchjs
    RevFE
    My Shop

  8. #8
    And then I was mod. Tidder's Avatar
    Join Date
    Sep 2003
    Location
    New Mexico, USA
    Posts
    4,207
    And this is vb.net specific right?
    Tidder

    Try RevFE
    The best resurrected frontend I've ever used, period.

  9. #9
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127
    Correct, in c# you just have to NOT put the Plugin class in a namespace, but apparently VB.net defaults to having your project in a "root" namespace so you have to go in and remove it.
    "stop with the REINSTALLS, what do you think we got some lame-o installer!!!" - mitchjs
    RevFE
    My Shop

Similar Threads

  1. Custom Indicator Bug
    By JohnWPB in forum RR Bug Tracker
    Replies: 4
    Last Post: 03-27-2008, 05:10 PM
  2. Fresh Install on New PC, Rebooting
    By phc in forum StreetDeck
    Replies: 3
    Last Post: 12-23-2007, 09:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •