🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #479

Sharing a variable through my project in BC++ 5.02

#479
From: Trenton D. Adams
Date: Sun, 01 Feb 1998 00:00
11 lines
1212 bytes
I used AppExpert to create a basic application.  I then modified, and 
added things that I wanted.  I have gotten all of my Dialogs and 
everything working.  

My question now is this.  How the heck do I make a variable that will 
keep it's value through my whole program?  I thought this would be very 
simple to figure out but nothing seems to work.  Here is an example of 
what I want.  My Application object is in a Header, and a CPP file.  My 
Dialog boxes are all in their own Header, and cpp files also.  How do I 
get a variable that will be shared between all of them?
Technical Details
Message-ID: <MPG.f3f021a49d3df279896a3@news.edmonton.telusplanet.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8d38,cc5639ecc55682f1,start
X-Google-Attributes: gidf8d38,public
X-Google-Thread: 114592,cc5639ecc55682f1,start
X-Google-Attributes: gid114592,public
X-Google-Thread: 109fba,cc5639ecc55682f1,start
X-Google-Attributes: gid109fba,public
From: adamst@telusplanet.net (Trenton D. Adams)
Subject: Sharing a variable through my project in BC++ 5.02
Date: 1998/02/01
Message-ID: <MPG.f3f021a49d3df279896a3@news.edmonton.telusplanet.net>
X-Deja-AN: 321258387
Organization: n/a
Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.language,comp.lang.c++