Solved

Finding all global/static variables

Posted on 2003-11-30
2
195 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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now