I am extending the Visual Studio 2003 debugger with autoexp.dat and a DLL to improve the way the data is displayed in the viewport. The main reason I use DLLs, and not just the basic autoexp.dat functions, is because I want to be able to display things conditionally. for example, I want to say: "If the name element is not an empty string, the display name otherwise displays [some other element]"
I am new to OOP and have no experience with STL. Maybe I missed the obvious.
I'm having problems displaying the elements of a vector because I don’t know how to get a pointer to the memory where the actual values are stored.
Did I understand correctly that the values are stored in a contiguous block of memory? And is there a way to access a pointer to this memory?
Thank!
[edit:] To clarify my problem (hopefully):
In my debugger-called DLL, I use the ReadDebuggeeMemory function, which makes a copy of the memory used by the object. It does not copy the memory pointed to by the object. Therefore, I need to know the actual value of the address of the internal pointer in order to be able to also call ReadDebuggeeMemory. Currently, the usual methods for retrieving the contents of a vector return garbage, since this memory has not yet been copied.
[Update:]
, _Myfirst, , . : ? ?