Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Evaluatig all macros used in definition
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

aayman
New Member

2 Posts

Posted - Jun 12 2005 :  03:46:52 AM  Show Profile
Dear All,

I have preprocessor macro that is

#define MY_STRUCT struct

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 ?

Thanks a lot :)

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 12 2005 :  4:21:37 PM  Show Profile
try turning on the VA option:

VA Options -> text editor -> listboxes -> get content from default intellisense

and see if this helps. if not can you post some example code showing what you are doing, along with which IDE and version of VA you are using.

zen is the art of being at one with the two'ness
Go to Top of Page

aayman
New Member

2 Posts

Posted - Jun 13 2005 :  04:31:42 AM  Show Profile
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);
}

i hope this will calrify the issue

Thanks a lot
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 13 2005 :  3:59:19 PM  Show Profile
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"

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000