Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900