If you can use !gle to dynamically view the value of GetLastError in code without actually having it in the code in WinDbg, is there any way you can use it in VC6 or VS.NET

What window do you type this into?

RE: !gle by anonymous

anonymous
Tue Mar 02 08:51:06 CST 2004

I'm not sure what !gle is
There is a GetLastError API you could use, which will return the Windows Error code. You could use ERRLOOK.EXE or the FormatMessage API to get the message
Mark

RE: !gle by anonymous

anonymous
Tue Mar 02 08:51:08 CST 2004

I'm not sure what !gle is
There is a GetLastError API you could use, which will return the Windows Error code. You could use ERRLOOK.EXE or the FormatMessage API to get the message
Mark

Re: !gle by Staffan

Staffan
Tue Mar 02 09:28:20 CST 2004

enter "ERR, hr" in a watch window.

/Staffan

"Bonj" <anonymous@discussions.microsoft.com> wrote in message
news:FF482742-A06C-4BE6-8547-474D173588D8@microsoft.com...
> If you can use !gle to dynamically view the value of GetLastError in code
without actually having it in the code in WinDbg, is there any way you can
use it in VC6 or VS.NET?
>
> What window do you type this into?



Re: !gle by Bonj

Bonj
Tue Mar 02 14:30:47 CST 2004

!gle
is what you can type into windbg.exe *when debugging* the program, just to
see it at that particular instance of debugging, not to actually use the
value in the code permanently.
It seems the thing to type is simply ERR, this is what I wanted to know.


"Mark" <anonymous@discussions.microsoft.com> wrote in message
news:37741A1A-BC59-4C95-972C-B61DB3266188@microsoft.com...
> I'm not sure what !gle is.
> There is a GetLastError API you could use, which will return the Windows
Error code. You could use ERRLOOK.EXE or the FormatMessage API to get the
message.
> Mark