Re: [Mono-dev] local file based EventLog implementation

2006-08-21 Thread Miguel de Icaza
Hello, I'd prefer the pure approach, meaning using your original EventLogMessages.dll. But we need approval from Miguel on this. Someone please send me a summary ;-) My feeling: I dont know why we need another dll. Miguel ___ Mono-devel-list

Re: [Mono-dev] local file based EventLog implementation

2006-08-21 Thread Robert Jordan
Hello, Miguel de Icaza wrote: I'd prefer the pure approach, meaning using your original EventLogMessages.dll. But we need approval from Miguel on this. Someone please send me a summary ;-) My feeling: I dont know why we need another dll. 1) The Win32-EventLog doesn't log strings. For

Re: [Mono-dev] local file based EventLog implementation

2006-08-21 Thread Gert Driesen
- Original Message - From: Robert Jordan [EMAIL PROTECTED] To: mono-devel-list@lists.ximian.com Sent: Monday, August 21, 2006 2:02 PM Subject: Re: [Mono-dev] local file based EventLog implementation Hello, Miguel de Icaza wrote: I'd prefer the pure approach, meaning using your

Re: [Mono-dev] local file based EventLog implementation

2006-08-21 Thread Atsushi Eno
What is more important to know is that this extra dll is required only for Win32 mode of the implementation. If I wrote about it, I'd have never said it is required. Atsushi Eno Robert Jordan wrote: Hello, Miguel de Icaza wrote: I'd prefer the pure approach, meaning using your original

Re: [Mono-dev] local file based EventLog implementation

2006-08-20 Thread Kornél Pál
b) adding EventLogMessages.dll to the binary distributions (for win32, and linux too) If we do not get approval for (b) (not sure why, but could be ofcourse), then we could still embed the dll into the System assembly and extract it at runtime (if it doesn't exist yet). But I'd

Re: [Mono-dev] local file based EventLog implementation

2006-08-20 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Kornél Pál Sent: zondag 20 augustus 2006 19:01 To: Gert Driesen; 'Robert Jordan'; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation

Re: [Mono-dev] local file based EventLog implementation

2006-08-18 Thread Kornél Pál
That would be great, but we still need to wait for approval from Miguel first. You can make sure that nothing will be approved until 1.1.17 is released so you don't have to hurry. And it's much easier to get approval for a properly working, complete patch than a partial one. Kornél

Re: [Mono-dev] local file based EventLog implementation

2006-08-18 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Kornél Pál Sent: vrijdag 18 augustus 2006 10:45 To: Gert Driesen Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation That would

Re: [Mono-dev] local file based EventLog implementation

2006-08-18 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Gert Driesen Sent: vrijdag 18 augustus 2006 11:26 To: 'Kornél Pál' Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation

Re: [Mono-dev] local file based EventLog implementation

2006-08-18 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Robert Jordan Sent: vrijdag 18 augustus 2006 16:19 To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation Gert Driesen wrote: b

Re: [Mono-dev] local file based EventLog implementation

2006-08-17 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Kornél Pál Sent: woensdag 9 augustus 2006 12:25 To: Gert Driesen; 'Atsushi Eno' Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation

Re: [Mono-dev] local file based EventLog implementation

2006-08-17 Thread Kornél Pál
Hi, The attached EventLogMessages.zip contains my implementation of EventLogMessages.dll that is required when using Windows Event Logging API. Note that the included EventLogMessages.cmd (requires Platform SDK tools) is able to create EventLogMessages.dll. I hope now everyting is clear

Re: [Mono-dev] local file based EventLog implementation

2006-08-17 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Kornél Pál Sent: donderdag 17 augustus 2006 19:59 To: Gert Driesen; 'Atsushi Eno' Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog

Re: [Mono-dev] local file based EventLog implementation

2006-08-17 Thread Kornél Pál
Hi, I do intend to support this for win32 using your supplied EventLogMessages.dll by default, and third-party message resource dll's when these are registered. I just wondered whether there's a something similar to these message resource dll's for unix. With this we could also support lookup

Re: [Mono-dev] local file based EventLog implementation

2006-08-17 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Kornél Pál Sent: donderdag 17 augustus 2006 21:15 To: Gert Driesen Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation Hi, I

Re: [Mono-dev] local file based EventLog implementation

2006-08-17 Thread Kornél Pál
On Windows it is required. OK, it can have any name but Windows API requires a message DLL and no message DLL can be specified using managed API so this is transparent to managed applications. It is not required. I have it working perfectly fine without one. It sounds weird to me. Could you

Re: [Mono-dev] local file based EventLog implementation

2006-08-17 Thread Gert Driesen
-Original Message- From: Kornél Pál [mailto:[EMAIL PROTECTED] Sent: donderdag 17 augustus 2006 21:47 To: Gert Driesen Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation On Windows it is required. OK, it can have any name

Re: [Mono-dev] local file based EventLog implementation

2006-08-17 Thread Kornél Pál
You could have a look at the patch(es) I sent to the list earlier this week. If they are too large, I'll just send you the code for my Win32EventLog implementation. I can find it in the patch.:) And actually found it but this week I have no time to go into details, I'll have a deeper look at

Re: [Mono-dev] local file based EventLog implementation

2006-08-10 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Kornél Pál Sent: woensdag 9 augustus 2006 12:25 To: Gert Driesen; 'Atsushi Eno' Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation

Re: [Mono-dev] local file based EventLog implementation

2006-08-10 Thread Kornél Pál
It's clear to me, but we'll need to see how we distribute this file (on Windows) and locate it. I think the easiest solution is to put the DLL to the directory of mscorlib.dll. This lets us use different version based on framework version (altough it's not currently required but MS.NET does the

Re: [Mono-dev] local file based EventLog implementation

2006-08-09 Thread Kornél Pál
Hi, And there is another important thing: Messages have to come from a DLL file. I never tried it, but isn't it achieved when we use Windows Event Logging API? This is how it is achieved in MS.NET: MS.NET has a file called EventLogMessages.dll that contains a message table resource with

Re: [Mono-dev] local file based EventLog implementation

2006-08-09 Thread Atsushi Eno
Hi, Kornél Pál wrote: And there is another important thing: Messages have to come from a DLL file. I never tried it, but isn't it achieved when we use Windows Event Logging API? This is how it is achieved in MS.NET: MS.NET has a file called EventLogMessages.dll that contains a message

Re: [Mono-dev] local file based EventLog implementation

2006-08-09 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Kornél Pál Sent: woensdag 9 augustus 2006 10:10 To: Atsushi Eno Cc: mono-devel-list@lists.ximian.com; Gert Driesen Subject: Re: [Mono-dev] local file based EventLog implementation

Re: [Mono-dev] local file based EventLog implementation

2006-08-09 Thread Kornél Pál
Yeah I read it, but I think there is no answer to my question there. What I meant is that I think those Windows event log API would already take those messages into their returning strings, so I don't think our code does not have to load that EventLogMessages.dll and rip messages from it.

Re: [Mono-dev] local file based EventLog implementation

2006-08-09 Thread Atsushi Eno
Of Kornél Pál Sent: woensdag 9 augustus 2006 10:10 To: Atsushi Eno Cc: mono-devel-list@lists.ximian.com; Gert Driesen Subject: Re: [Mono-dev] local file based EventLog implementation Hi, And there is another important thing: Messages have to come from a DLL file. I never tried it, but isn't

Re: [Mono-dev] local file based EventLog implementation

2006-08-09 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Atsushi Eno Sent: woensdag 9 augustus 2006 10:43 To: Gert Driesen Cc: 'Kornél Pál'; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation

Re: [Mono-dev] local file based EventLog implementation

2006-08-08 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Atsushi Eno Sent: maandag 7 augustus 2006 3:58 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] local file based EventLog implementation Hi, During a consultation

Re: [Mono-dev] local file based EventLog implementation

2006-08-08 Thread Atsushi Eno
Hi Gert, Thanks for the comments. Gert Driesen wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Atsushi Eno Sent: maandag 7 augustus 2006 3:58 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] local file based

Re: [Mono-dev] local file based EventLog implementation

2006-08-08 Thread Kornél Pál
: [Mono-dev] local file based EventLog implementation Hi, During a consultation with a local customer I recently noticed that we don't have EventLog implementation, while a basic framework has existed for years, which was intended to have some different implementations. Hence I implemented pretty

Re: [Mono-dev] local file based EventLog implementation

2006-08-08 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Kornél Pál Sent: dinsdag 8 augustus 2006 20:03 To: Atsushi Eno; Gert Driesen Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation

Re: [Mono-dev] local file based EventLog implementation

2006-08-08 Thread Gert Driesen
-Original Message- From: [EMAIL PROTECTED] [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of Atsushi Eno Sent: dinsdag 8 augustus 2006 19:47 To: Gert Driesen Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] local file based EventLog implementation Hi Gert

Re: [Mono-dev] local file based EventLog implementation

2006-08-08 Thread Kornél Pál
Message - From: Gert Driesen [EMAIL PROTECTED] To: 'Kornél Pál' [EMAIL PROTECTED]; 'Atsushi Eno' [EMAIL PROTECTED] Cc: mono-devel-list@lists.ximian.com Sent: Tuesday, August 08, 2006 8:48 PM Subject: RE: [Mono-dev] local file based EventLog implementation -Original Message- From

Re: [Mono-dev] local file based EventLog implementation

2006-08-08 Thread Atsushi Eno
Hello, I'm not sure if it's really necessary to have a separate EventLogFactory abstraction, we could use a similar approach to the one used for the Registry API; meaning, define an interface and implementations of that interface and have EventLog pick the implementation for doing all the

Re: [Mono-dev] local file based EventLog implementation

2006-08-08 Thread Atsushi Eno
Hello, Kornél Pál wrote: You are right, events are not stored in registry: http://support.microsoft.com/kb/315417/ And the source has to be added using registry API: http://windowssdk.msdn.microsoft.com/en-us/library/ms684029.aspx

[Mono-dev] local file based EventLog implementation

2006-08-06 Thread Atsushi Eno
Hi, During a consultation with a local customer I recently noticed that we don't have EventLog implementation, while a basic framework has existed for years, which was intended to have some different implementations. Hence I implemented pretty simple stupid one, which works only for local