News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Event Log

Started by cambomee, September 26, 2010, 02:12:14 AM

Previous topic - Next topic

cambomee

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


jj2007

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.