Click here to Skip to main content
14,606,461 members
Rate this:
Please Sign up or sign in to vote.
I have some third party Win32 code that uses lots of big structures. Throughout the code, the elements of these structures are referred to via #define variables a la:

#define hFrmWnd       (w->hFrmWndW)


This effectively hides them from the debugger, which is a pain. Obviously I can use the expanded form to see the values, but I was wondering if I could use a .natvis file to automate the expansion somehow? (Meaning - is there a way to just use "hFrmWnd" in the debugger and see the value?)

For extra fun, here w is a pointer variable PREPWND, typedef'd as a pointer to the actual structure variable REPWND of typedef StrSession.

PREPWND w;

typedef REPWND far *PREPWND;

typedef struct StrSession {
...
}REPWND;


What I have tried:

I can do basic thing in natvis - but I don't have a clue where to start with the above.
Posted
Updated 14-Jun-20 13:40pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100