the problem occurs wn i dereference a pointer or an instance from this struct
only one list box occurs in all structures
i checked the option : evaluate all macros used in definitions and i included the file containing these macros in the projects >> C\\C++ Directories in both the stable include files and the other include files
but it didn't work
so, can anyone help me how can i enable this feature ?
I forgot to say that i tried it b4 but it didn't work, a side effect of turning on this option was that no listbox occurs at all
that's why i excluded this feature from my question
I am using VA version 10.1.1301.0 under MS Visual C++ .NET 2003
i have a file named
datatypes.h ***********
#define MY_STRUCT struct #define MY_UINT32 int
*******************************************
and i have a structure named Point
MY_STRUCT Point { MY_UINT32 m_x; MY_UINT32 m_y; };
and one of my functions is: ****************************
void printPoint(MY_STRUCT Point * p) { /* p->"doesn't work" and i gotta get it copy and paste from the file containg the desired structure */ printf("x= %d \\n", p->m_x); printf("y= %d \\n", p->m_y); }
first up why have you #defined MY_STRUCT to be struct
to me this just seems like a really strange idea, and i don't see any obvious benefits to this.
using a test C++ project in vs2003 with VA 1413 i placed both the #define and the structure in the same header file.
if i turn on "get content from default intellisense" then i get suggestions when typing in your function in the matching cpp file. with default intellisense turned off i do not get suggestions.
can you try copying the definitions into the same header as your structure and restarting your IDE? this is basically what i did, and it is working for me.
i would suggest the work around is to use "struct" in place of "MY_STRUCT"