Application Log

Windows specific forum
trather
User
User
Posts: 29
Joined: Sun Nov 07, 2004 9:57 pm

Application Log

Post by trather »

I would like to add an error message to the Windows application log if my program has a problem. I already have all the error's handled inside the program I just don't have any idea how to put an error message in the Windows eventviewer under applications. Can someone point me in the correct direction.

Thansk
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

This looks like a good place to start. Reporting an Event
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
trather
User
User
Posts: 29
Joined: Sun Nov 07, 2004 9:57 pm

Post by trather »

I don't understand the structure to be able to make it work in PB. Can you help me out with the code to write a basic error to the event log.
someone_else
New User
New User
Posts: 4
Joined: Sun Jan 15, 2006 11:23 pm

hmm...

Post by someone_else »

So how does one write to the Application log using PureBasic?
...
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

Look at PBOSL ( NTLOG functions )

The source code is provided :wink:
someone_else
New User
New User
Posts: 4
Joined: Sun Jan 15, 2006 11:23 pm

PBOSL, eh?...

Post by someone_else »

Thanks Droopy, I'll look into it.
...
Post Reply