UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
Sponsored Links
Latest Postings
by Gremelin
10/05/15 06:01 PM
Latest Reviews
Topic Options
Rate This Topic
#17238 - 12/31/03 10:07 PM extern in cpp
acid45 Offline
Junior Member

Registered: 12/19/03
Posts: 38
Loc: canada
When using the extern is it similar to the define funtion only the extern's first variable is the variable already declared in a headerfile included above and the second part is the new name for easier codding of newer objects and things like that.
The first time I saw it all it said was:
 extern C {
I had no idea, and still don't what this did. While looking at some direct draw I saw some variables like:
I looked in the ddraw.h file and found that so I think I am correct in what extern does, in part anyway.

PS: I think I may have a keylogger of some sort, I don't think it is activly sending information but it is fairly annoying that everytime I hit enter I lose the focus of ALL windows, even full screen games. I don't see any unusual activity but I'd like to get rid of this annoyance.

Sponsored Links
#17239 - 01/01/04 02:51 PM Re: extern in cpp
Predator Offline

Registered: 03/01/02
Posts: 197
Loc: Belgium
Global variables are available to all parts of the program. If the existence of a global variable in one file is declared using the extern keyword in another file, the data is available for use by the second file.
Never argue with fools... They will only drag you down to their level, and beat you with experience...

#17240 - 01/03/04 10:10 PM Re: extern in cpp
acid45 Offline
Junior Member

Registered: 12/19/03
Posts: 38
Loc: canada
So extern is used to use global variables in more than one program from a single file: IE header files?

#17241 - 01/07/04 09:00 PM Re: extern in cpp
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
extern is used to use global variables IN one program that consists of more than one .C or .CPP file.
Domain Registration, Hosting, Management

#17242 - 01/26/04 06:41 AM Re: extern in cpp
raquel Offline
Junior Member

Registered: 01/26/04
Posts: 1
Loc: philippines
hi guys im new here


Featured Member
Registered: 04/29/15
Posts: 2
Forum Stats
2158 Members
46 Forums
41545 Topics
76720 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 34707
Gremelin 7194
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Jan Havelles, Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit
2158 Registered Users
Who's Online
0 registered (), 274 Guests and 418 Spiders online.
Key: Admin, Global Mod, Mod
Latest News

  Get Firefox!
Get FireFox!