Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Finding all global/static variables

Posted on 2003-11-30
2
221 Views
Last Modified: 2012-05-04
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
Comment
Question by:pdsdps
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 125 total points
ID: 9848360
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
 
LVL 1

Expert Comment

by:fyf7262284
ID: 9848723
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question