• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Finding all global/static variables

I am modifying a large (400,000 lines) C++ application developed in VC++ 6.0.  I need to remove all global variables and static variables so that the application can become thread-safe.

Does anyone know of a way to identify the globals and statics within my source code?  The first step in replacing these (or wrapping them with thread-safe mechanisms) is to know how many and where they are.

1 Solution
You can see all global variables in the Class View, Globals folder.
To find all static variables just make a search for the static word.
yeah,you can you see global variables in class view,and then you use "find "method to find the keyword "static"! you can try!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now