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
August
Su M Tu W Th F Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Sponsored Links
Latest Postings
Amazon Gift Card Generator/KeyGen?te
by Gecko666
08/22/14 09:21 AM
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:
Code:
 extern C {
I had no idea, and still don't what this did. While looking at some direct draw I saw some variables like:
Code:
extern DDRAWSURFACEDESC ddsd;
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.

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

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...

Top
#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?

Top
#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
http://www.dollardns.net

Top
#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
_________________________

Top

Featured Member
Registered: 08/20/13
Posts: 1
Forum Stats
2148 Members
46 Forums
33980 Topics
69147 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 27142
Gremelin 7192
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Gecko666, defghi795767, Devo60, ali, lavos
2147 Registered Users
Who's Online
0 registered (), 309 Guests and 312 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!