We help IT Professionals succeed at work.
Get Started

Visual C++ - intellisense not picking up struct fields

basil365
basil365 asked
on
420 Views
Last Modified: 2012-05-12
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:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE