The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: cambomee on September 26, 2010, 02:12:14 AM

Title: Event Log
Post by: cambomee on September 26, 2010, 02:12:14 AM
I am new to ASM coding with a C, C++ and C# background.

I normally create projects with an windows event log feature built into try catch blocks.

Is there any way I can achieve this in ASM coding.

ie; try catch simulation and logging errors to windows event viewer.

Thanks

Title: Re: Event Log
Post by: jj2007 on September 26, 2010, 07:04:22 AM
If the errors are exceptions, SEH is the way to go (search the forum for structured exception handling)
If the errors are just "bad" return values from WinAPI calls, do it with a simple call to your WinErrorLog procedure.