We help IT Professionals succeed at work.

Visual C++ - intellisense not picking up struct fields

basil365
basil365 asked
on
Hi,

I have a c++ program with a struct defined in a header file

typedef struct
{
	
	std::vector<PenaltyData> homePenalties;
	std::vector<PenaltyData> awayPenalties;
	bool _goalLastPeriod_;
	int _lastHomeGoalTime_;
	int _lastAwayGoalTime_;
	int _homeScore_;
	int _awayScore_;
	int _homeInitScore_;
	int _awayInitScore_;
	int _homeInBin_;
    int _awayInBin_;
	int _period1HomeScore;
	int _period1AwayScore;
	int _period2HomeScore;
	int _period2AwayScore;
	int _period3HomeScore;
	int _period3AwayScore;

} SimulationDetails;

Open in new window


This structure is not appearing as an option in intellisense (whereas another struct in the same header file is) in a file that references the header, and no fields are appearing on any instances of the struct that are created.

Can somebody explain to me any potential issues?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2012
Commented:
No potential issues that I could point out (except that IntelliSense has hickups every once in a while), but usually deleting the <project>.ncb file will help - it will be recreated when you open the solution again and IntelliSense is forced to recreate it's index as well.

Author

Commented:
thanks, where is this file usually located?

Author

Commented:
nevermind - found it, apologies

Author

Commented:
perfect, never knew that to happen! (Gosh i hate c++)
jkr
CERTIFIED EXPERT
Top Expert 2012

Commented:
That's not a C++ issue, that an IntelliSense problem ;o)

Author

Commented:
true! - Thanks again

Explore More ContentExplore courses, solutions, and other research materials related to this topic.