Shoutbox

Plugins C++ - 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: Plugins C++ (/showthread.php?tid=32036)

Plugins C++ by michael_m91 on 09-25-2004 at 03:34 AM

So with the new plugin API, theres C++ 7.0 and C++ 6.0.

C++ 7.0 has events, but I dont have C++ 7.0. Is there a way for me to use events in C++ 6.0 or Even in VB 6.0?:P


RE: Plugins C++ by Patchou on 09-25-2004 at 04:16 AM

Oh, sure... it's just that I didn't had the time to do another version of the new sample... most of the code that won't mport automatically fromVC7 to VC6 will concern ATL windows and you can ignore that as they are only useful for demonstration purposes.. The Sink class should be entirely compatible with VC6 (and if it's not, it shouldn't be too difficult to make the necessarychanges).


RE: RE: Plugins C++ by michael_m91 on 09-25-2004 at 04:21 AM

quote:
Originally posted by Patchou
Oh, sure... it's just that I didn't had the time to do another version of the new sample... most of the code that won't mport automatically fromVC7 to VC6 will concern ATL windows and you can ignore that as they are only useful for demonstration purposes.. The Sink class should be entirely compatible with VC6 (and if it's not, it shouldn't be too difficult to make the necessarychanges).


Alright thanks, and do you know if you will ever be implementing the events into VB Plugin Samples?
RE: Plugins C++ by Patchou on 09-25-2004 at 06:29 AM

Well, once again, this can already been done, it's jsut that I didn't make a sample for VB6... if I find the time, I'll do it :).


RE: Plugins C++ by michael_m91 on 09-25-2004 at 06:33 AM

quote:
Originally posted by Patchou
Well, once again, this can already been done, it's jsut that I didn't make a sample for VB6... if I find the time, I'll do it :).

So are you saying without the sample we can still code it in vb but we need the right API calls?

And thanks for finding time somtime because i'm not very good at C++
RE: Plugins C++ by Yousef on 09-25-2004 at 06:41 AM

in vb it's just something like

code:
public withevents omess as messengerAPI.messenger

and in initalize()

set omess = omessenger

I suppose..
Plugins C++ 7.0 to Plugins C++ 6.0 by michael_m91 on 09-25-2004 at 11:03 PM

Ok I took all the files from the C++ 7.0 API Sample, and inported it into Visual C++ 6.0. I got the Following error messages.

Mind you i'm not very good at C++ but more at Visual Basic but since the events is only for C++ I decided to try it.

http://shoutbox.menthix.net/attachment.php?pid=313112


RE: Plugins C++ by Patchou on 09-26-2004 at 04:35 AM

If you're not good at C++, you shouldn't try tolearn it by doing this kind of thing, it will just confuse you. You should stick to VB :). And once again, events can be coded in VB6 as well. In fact, it's much better to use in VB than in VC.

Itend to think that the code posted by noelie should work fine. I should make a poll to know what's the percentage of VB6 vs VB.NET programmers.


RE: Plugins C++ by michael_m91 on 09-26-2004 at 05:49 AM

Thata be nice! (y)