• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • 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.

0
pdsdps
Asked:
pdsdps
1 Solution
 
AlexFMCommented:
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.
0
 
fyf7262284Commented:
yeah,you can you see global variables in class view,and then you use "find "method to find the keyword "static"! you can try!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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