What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » [C#] Write to MsgPlus Event Log

[C#] Write to MsgPlus Event Log
Author: Message:
Jedimark
Full Member
***


Posts: 140
Reputation: 6
Joined: Apr 2002
RE: [C#] Write to MsgPlus Event Log
J-Thread: Your code works (sort of) and mine doesn't so I'll just use yours lol (A)

Anyway, I have the AddEventEntry in a class called Utilities.cs and I made it "public static bool" so I could then do:

code:
MLP.Utilities.AddEventEntry(thisContact, language[18] + " " + thisTitle + " " + language[19] + " " + thisArtist);
But it doesn't work.

However, I can write to the EventLog if I call the method from "MainForm_Load", why is this?

The method I want it to be called from is simply:
code:
private bool addEventLog(string thisContact, string thisTitle, string thisArtist)
        {
            RegistryKey rootPath = Registry.CurrentUser.CreateSubKey("Software\\Jedimark\\Music Logger Plus");
            string logStatus = rootPath.GetValue("LogToPlus").ToString();
            if (logStatus.Equals("true"))
            {
                MLP.Utilities.AddEventEntry(thisContact, language[18] + " " + thisTitle + " " + language[19] + " " + thisArtist);
                return true;
            }
            return false;
        }
(and yes, the if statement does return "true" so it is executing the call)
10-06-2005 07:12 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[C#] Write to MsgPlus Event Log - by andersona91 on 10-03-2005 at 06:00 PM
RE: [C#] Write to MsgPlus Event Log - by J-Thread on 10-03-2005 at 06:21 PM
RE: [C#] Write to MsgPlus Event Log - by J-Thread on 10-04-2005 at 07:14 PM
RE: [C#] Write to MsgPlus Event Log - by Jedimark on 10-04-2005 at 09:50 PM
RE: [C#] Write to MsgPlus Event Log - by J-Thread on 10-05-2005 at 05:48 AM
RE: [C#] Write to MsgPlus Event Log - by CookieRevised on 10-05-2005 at 02:35 PM
RE: [C#] Write to MsgPlus Event Log - by Jedimark on 10-06-2005 at 07:12 PM
RE: [C#] Write to MsgPlus Event Log - by J-Thread on 10-06-2005 at 08:17 PM
RE: [C#] Write to MsgPlus Event Log - by Jedimark on 10-06-2005 at 08:48 PM
RE: [C#] Write to MsgPlus Event Log - by J-Thread on 10-07-2005 at 08:08 AM
RE: [C#] Write to MsgPlus Event Log - by Jedimark on 10-07-2005 at 04:03 PM
RE: [C#] Write to MsgPlus Event Log - by J-Thread on 10-07-2005 at 06:30 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On