|
 |
05-15-2009, 01:20 AM
|
#1
|
|
Super Moderator & Wal-Mart Greeter
Join Date: Sep 2003
Location: New Mexico, USA
Posts: 3,394
|
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 frontend I've ever used, period.
Best Quote EVER!!
Quote: Originally Posted by bramlet 
I try to search but I usually only find posts where people ask questions and darquepervert tells them to search.
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
05-15-2009, 05:42 AM
|
#2
|
|
North of the land of Hey Huns
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,038
|
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
__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.
|
|
|
05-15-2009, 11:37 AM
|
#3
|
|
Super Moderator & Wal-Mart Greeter
Join Date: Sep 2003
Location: New Mexico, USA
Posts: 3,394
|
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 frontend I've ever used, period.
Best Quote EVER!!
Quote: Originally Posted by bramlet 
I try to search but I usually only find posts where people ask questions and darquepervert tells them to search.
|
|
|
05-15-2009, 11:58 AM
|
#4
|
|
Super Moderator & Wal-Mart Greeter
Join Date: Sep 2003
Location: New Mexico, USA
Posts: 3,394
|
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 frontend I've ever used, period.
Best Quote EVER!!
Quote: Originally Posted by bramlet 
I try to search but I usually only find posts where people ask questions and darquepervert tells them to search.
Last edited by Tidder; 05-16-2009 at 12:21 PM.
|
|
|
05-15-2009, 12:03 PM
|
#5
|
|
North of the land of Hey Huns
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,038
|
how do you know my plugin isnt working? You don't have a skin file that takes advantage of it do you?
__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.
|
|
|
05-15-2009, 12:42 PM
|
#6
|
|
Super Moderator & Wal-Mart Greeter
Join Date: Sep 2003
Location: New Mexico, USA
Posts: 3,394
|
Reverse engineering... uhh... quantum physics... the alignment of the planets, err arora borealis?
__________________
Tidder
Try RevFE
The best frontend I've ever used, period.
Best Quote EVER!!
Quote: Originally Posted by bramlet 
I try to search but I usually only find posts where people ask questions and darquepervert tells them to search.
|
|
|
05-16-2009, 08:49 AM
|
#7
|
|
North of the land of Hey Huns
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,038
|
This issue has been fixed. Turns out you have to go into project properties, and delete the "Root Namespace:" field.
__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.
|
|
|
05-16-2009, 11:36 AM
|
#8
|
|
Super Moderator & Wal-Mart Greeter
Join Date: Sep 2003
Location: New Mexico, USA
Posts: 3,394
|
And this is vb.net specific right?
__________________
Tidder
Try RevFE
The best frontend I've ever used, period.
Best Quote EVER!!
Quote: Originally Posted by bramlet 
I try to search but I usually only find posts where people ask questions and darquepervert tells them to search.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
05-16-2009, 11:47 AM
|
#9
|
|
North of the land of Hey Huns
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,038
|
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.
__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:21 PM.
| |