Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Variables

Status
Not open for further replies.

LPV

Technical User
Jun 18, 2001
12
0
0
US
I'm just starting with Visual C++ and would like to know how to pass variables between projects.

I have an application that will have several projects and need to pass data between them. In C++, I would use the 'extern' declaration to pass them, what's the VC++ method and where does the code go?

Also, any books that might be helpful would also be appreciated.

Thanks in advance.

J. Engel.
 
The declaration with extern can be put in every places do you want. The implementation means usualy the place where is what ou declared without extern. Usualy you should put them in cpp files. It doesn't mean in what file you implemented functions. Esentially is the iomplementation files to bge prezent into your project. They can by not alway cpp files. You can put lib, obj, dll files. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top