Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Monday October 13, 2003
01:53 PM

Win32 event logs

[ #15194 ]
So, now I'm on to writing an Event Log interface for Ruby. I'm using Perl's Win32::EventLog as a base and, for the most part, the Win32 API has been fairly straightforward.

Until now, that is. Getting log descriptions is one of the more annoying approaches I've ever seen. Rather than simply including this data as part of a struct, they created pointers to data within the struct, which requires pointer arithmetic and loops. Ick.

The Win32::EventLog module source code has been somewhat helpful, but there's a bit too much Perl extension magic at times and I lose track of exactly how certain things are working. To make matters worse, I think the API is atrocious. The original author was clearly a hardcore C programmer, and the API reflects that. The final straw is that I can't even get the damned thing to work using the provided examples, and that's *without* turning 'strict' on.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.