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, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
Our Sponsors

Latest Postings
Owning Servers
by ZER0_DECEPTION
1 second ago
my old account still exists!
by Gizmo
08/19/08 02:27 PM
Burger King gone Wild!
by Gizmo
08/08/08 11:42 PM
PDX 2600
by rbcp
08/07/08 12:46 AM
The Pirate Bay- shut down?
by ZER0_DECEPTION
08/05/08 09:07 PM
Windows Events for Changing Access rights to a folder or a File
by Gizmo
08/05/08 12:32 PM
question about IE and CSS
by §intå×
08/04/08 08:51 PM
Server
by Gizmo
08/01/08 01:29 AM
Topic Options
#17238 - 01/01/04 01:07 AM 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
Our Sponsors
Sponsor Our Sponsors

Top  
#17239 - 01/01/04 05: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/04/04 01:10 AM 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/08/04 12:00 AM 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 09:41 AM Re: extern in cpp
raquel Offline
Junior Member

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

Top



Forum Stats
6911 Members
44 Forums
10465 Topics
45204 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6929
UGN Security 3441
§intå× 3250
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
red queen, byopc, cybermox, NiPah, mcscrwdy25
6911 Registered Users
Who's Online
1 Registered (ZER0_DECEPTION), 10 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Aug 27, 2008
by Gizmo
08/28/08 12:58 AM
Update Humpday - Aug 20, 2008
by Gizmo
08/21/08 01:48 AM
Update Humpday - Aug 14, 2008
by Gizmo
08/14/08 08:33 AM
Update Humpday - Aug 06, 2008
by Gizmo
08/06/08 08:05 AM
Update Humpday - Jul 30th, 2008
by Gizmo
07/31/08 11:17 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!