Sorry if this has been asked... - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Forum: Plug-Ins (/forumdisplay.php?fid=28) +------ Thread: Sorry if this has been asked... (/showthread.php?tid=51208) Sorry if this has been asked... by frak on 10-01-2005 at 02:23 AM
But I am trying to find either some kind of advanced howto or some more involved source code that is given away with the API download. RE: Sorry if this has been asked... by RaceProUK on 10-03-2005 at 01:45 PM What sort of examples are you looking for? RE: Sorry if this has been asked... by CookieRevised on 10-03-2005 at 02:27 PM
quote:Start by reading the official Help pages. It is clearly stated there: http://www.msgplus.net/help.php on the bottom it states: quote: RE: Sorry if this has been asked... by frak on 10-03-2005 at 03:10 PM
I have the API docs, but my question isn't so much about the Messenger API - that I can deal with. RE: Sorry if this has been asked... by CookieRevised on 10-03-2005 at 09:10 PM
If you follow the guidelines in the API doc exactly, then your DLL should run just fine... The procedures in the examples are very important and must be followed exactly. In other words, first check if your dll is loaded correctly. If that is ok, afterwards you can start checking your routines you perform. RE: Sorry if this has been asked... by frak on 10-04-2005 at 02:30 PM
Thanks for your continued help, but I think my problem is not so much with the code I have written, but more the process of getting a VB.NET plugin running. And I would really love to get at the files the following URL that has been mentioned a few times on the forum, but seems to be broken: RE: Sorry if this has been asked... by CookieRevised on 10-04-2005 at 06:01 PM
interesting threads to read (I know it takes time to read all of it, but it might help a lot): quote:dunno if that still applies or not though... --- about http://www.mscorlib.com/DesktopDefault.aspx?tabid=271: * WebArchive Jan 09, 2004 * WebArchive Mar 16, 2004 The files themself aren't available anymore though... --- Nevertheless, did you try to run the example plugin (unmodified) in the MPPlugins documentation from Plus!? As all the info in those given threads (and also on mscorlib.com) is really very old information and things might have changed. The current VB.NET sample plugin in the official documentation should work fine... RE: RE: Sorry if this has been asked... by KokiriChild on 10-04-2005 at 06:07 PM
quote: It's horrible trying to VB.NET plugins to work, and according to the baord getting that VB.NET Plugin to work is even worse again. Sorry I can't be of more help, but "don't follow the example" is what I'm trying to say. - KokiriChild RE: Sorry if this has been asked... by CookieRevised on 10-04-2005 at 06:12 PM
quote:I can't confirm nor deny it, I only know that what has been said in those threads is very old and things have changed since then. So I don't know if all that still applies... RE: Sorry if this has been asked... by frak on 10-04-2005 at 07:04 PM
CookieRevised: RE: Sorry if this has been asked... by J-Thread on 10-04-2005 at 07:13 PM
Music Logger Plus has been written in C#.NET, except some errors after installing it, it does work, but... As far as I know you can only use 1 C#.NET (and probably VB.NET, those are almost the same) plugin in the same time. When installing the second .NET plugin it doesn't work. So when testing, uncheck all the other plugins in your plugin list to make sure that isn't the problem. RE: Sorry if this has been asked... by frak on 10-04-2005 at 07:30 PM
quote: Hmmm, I was just using /s - dont tell me this is what I have been doing wrong... As for other plugins, I dont have any other plugins installed - heresy, I know, but they dont do what I want them too ;o) RE: Sorry if this has been asked... by J-Thread on 10-04-2005 at 07:32 PM That may indeed be the problem. I've tested and regasm /codebase turned out to be the best way. And as I said before, the plugin doesn't need to be in the plugins dir, because with the codebase option the full path to the plugin is registered RE: RE: Sorry if this has been asked... by KokiriChild on 10-04-2005 at 07:48 PM
quote: Uhm, no, sorry, we're all VB6 around here, and my plugin would work if it wasn't for the little DisplayToast() problem [link] - KokiriChild RE: Sorry if this has been asked... by CookieRevised on 10-05-2005 at 04:15 PM
quote:VB6 is extremely easy for making a plugin... quote:It has of course some advantages over VB6, like you don't have to register your plugin anymore... quote:'We' are certainly not all VB6 around here. Many people on this forum program in C++, Delphi, VB, Java, etc... And plugins have been created in C++, VB, VB.NET, C#, Dev-C++, and there are even frameworks for VBScript and JavaScript... RE: Sorry if this has been asked... by KokiriChild on 10-05-2005 at 06:05 PM
quote: Sorry! I meant 'we' as in 'we who live in this house', not 'we who post on this forum', apologise for any confusion there, and I think Patchou would slap my VB6 butt with his C++ Libraries if I meant he was a VB programmer too - KokiriChild RE: Sorry if this has been asked... by RaceProUK on 10-06-2005 at 12:59 PM
quote:I think I can explain why. When Plus! loads a .NET plugin, it loads MSCOREE.DLL into the process space. When it tries to load the next .NET plugin, it loads MSCOREE.DLL again. However, there's something in MSCOREE.DLL that prevents two copies being loaded at the same time. If this is true, it doesn't make sense to me: I thought only one copy of a DLL was loaded into the process space anyway, no matter how many (explicit/implicit) calls to LoadLibrary() there are. RE: Sorry if this has been asked... by J-Thread on 10-06-2005 at 04:17 PM
Yes I thougt of that too... RE: Sorry if this has been asked... by frak on 10-07-2005 at 04:45 PM
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?) 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: 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: 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? RE: Sorry if this has been asked... by J-Thread on 10-07-2005 at 06:34 PM
When you want to use the messengerapi there are some things to do. RE: Sorry if this has been asked... by frak on 10-07-2005 at 07:05 PM
Sorry, but I have been doing what you have described above (minus the codebase option until I found out about it) from the very beginning... RE: Sorry if this has been asked... by J-Thread on 10-08-2005 at 07:15 AM
code: Sorry I didn't notice that before! |