Unfortunately despite my best efforts I am unable to get any kind of code working using VB.NET - even using the /codebase option (are those warnings normal?)
Thanks for your help anyway guys - I think I may try C++ as I have slightly masochistic tendencies ;o)
Well, having done exactly what I said I wouldn't, I have stuck with trying to nail down what is going wrong with my VB.NET plugin, please consider the following Initialise function
code:
Public Function Initialize(ByVal nVersion As Integer, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
MsgBox(sAppName + "::Initialise called!", MsgBoxStyle.OKOnly, "DEBUG")
MyPlugin.oMessenger = oMessenger
MsgBox(sAppName + "::Initialise - Got Messenger ref", MsgBoxStyle.OKOnly, "DEBUG")
Initialize = True
End Function
There are other things, such as dimming vars and some set-up that I have removed for simplicity, and testing. Now, when I start Messenger I get the first MsgBox, but not the second. I have declared my oMessenger as follows:
code:
Public Shared WithEvents oMessenger As MessengerAPI.Messenger
Although the sample has this as MessengerClass, I changed this because of the code I found in
this thread but neither have made any difference - if I try to get a reference to the running Messenger instance, then my function doesn't get past this point.
Any ideas?