Thread: Messenger

  1. #1
    Novice C++ Programmer
    Join Date
    Nov 2003
    Posts
    96

    Messenger

    I need some help with an MSN Messenger MOD. The creator of the Messenger mod used a DLL file editor (Resource Hacker) that allows him to open and edit DLL files. He Opened the MSN Messenger DLL "msgslang.dll" and added simply added a few menus and entries into those menues by typing MENUITEM "Text here" in the proper location. But obviously when those menu items are clicked it doesn't do anything. How would I add commands to those items? The guy doing it doesn't even know how to program except HTML so he wanted me to help him. But his ignorance has even confused me. What he wants to do is have it so that when you click a certain menu item say... "/test" it will either automatically send it to the person you are talking with or it will enter it into the message area text box that you type your message in. How the heck would I do something like this? Any ideas?

    (Moderators please delete this in the Network forum.)

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    tsk, tsk...

    Edit DLL's to add services to software? You're looking at it from the wrong end of the barrel. If you patch a function with another function, there are many things to consider. Functions expect certain numbers and sizes of parameters - violating this alignment causes the program (and possibly computer itself) to crash. Furthermore, when you intercept a function, you generally should pass it back through the original function at some point (since that function did, after all, have some purpose). The list goes on. Any way, Microsoft offers COM and OLE services thoughout most of their products. Why not use that?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    http://www.1cplusplusstreet.com/vb/s...=7011&lngWId=3

    http://www.codeguru.com/activex/Psapi.html

    What he wants to do is have it so that when you click a certain menu item say... "/test" it will either automatically send it to the person you are talking with or it will enter it into the message area text box that you type your message in.

    This should be achievable as per the first sample above. I think there is also a COM interface to Messenger which you may be able to use.

  4. #4
    Novice C++ Programmer
    Join Date
    Nov 2003
    Posts
    96
    Ok thanks I'll try these options.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open source, easy-to-use XMPP messenger: Open-IM
    By mkruk in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 06-22-2008, 04:10 PM
  2. MSN Messenger 7.5
    By sean in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 09-07-2005, 10:06 PM
  3. MSN Messenger SDK?
    By -=SoKrA=- in forum Tech Board
    Replies: 3
    Last Post: 06-03-2003, 01:41 PM
  4. Messenger Port number
    By sebastiraj in forum C Programming
    Replies: 0
    Last Post: 02-15-2002, 03:33 AM