Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: port scan detector Pin
Antony M Kancidrowski2-Sep-04 23:16
Antony M Kancidrowski2-Sep-04 23:16 
GeneralRe: port scan detector Pin
bmw50025-Sep-04 14:43
bmw50025-Sep-04 14:43 
GeneralRe: port scan detector Pin
Antony M Kancidrowski6-Sep-04 2:53
Antony M Kancidrowski6-Sep-04 2:53 
GeneralRe: port scan detector Pin
Antony M Kancidrowski2-Sep-04 23:11
Antony M Kancidrowski2-Sep-04 23:11 
GeneralNon-Static Callbacks Pin
bmw50022-Sep-04 18:06
bmw50022-Sep-04 18:06 
GeneralRe: Non-Static Callbacks Pin
Indrawati2-Sep-04 19:10
Indrawati2-Sep-04 19:10 
GeneralRe: Non-Static Callbacks Pin
bmw50022-Sep-04 19:47
bmw50022-Sep-04 19:47 
GeneralRe: Non-Static Callbacks Pin
Indrawati2-Sep-04 19:58
Indrawati2-Sep-04 19:58 
Hi
All static members of a class must be defined somewhere. This is necessary since unlike normal member variables, which are created when a class is instantiated, static member variables exist even when there is no instance of the class. For example, if you have something like:

in A.h:
class A
{
static int _anInt;
};

the you define it as (in A.cpp):
int A::_anInt;

The definition is usually put on top of your class implementation file, and it is also useful for setting a default value for your static member (i.e. if you want to override the default 0 value), e.g:

in A.cpp:
int A::_anInt(10) //set _anInt to 10
GeneralRebar Band Info Problem Pin
Dan Neilsen2-Sep-04 15:08
Dan Neilsen2-Sep-04 15:08 
GeneralRe: Rebar Band Info Problem Pin
Dan Neilsen2-Sep-04 15:13
Dan Neilsen2-Sep-04 15:13 
GeneralMultiple BDA Graphs within the same Process. Pin
bear72-Sep-04 14:06
bear72-Sep-04 14:06 
Questionread/write buffered render engine... suggestions? Pin
xdissent2-Sep-04 12:38
xdissent2-Sep-04 12:38 
Generalcustom error during compile time Pin
Rohit Joshi2-Sep-04 11:32
Rohit Joshi2-Sep-04 11:32 
GeneralRe: custom error during compile time Pin
Michael Dunn2-Sep-04 12:01
sitebuilderMichael Dunn2-Sep-04 12:01 
GeneralRe: custom error during compile time Pin
James R. Twine2-Sep-04 13:53
James R. Twine2-Sep-04 13:53 
GeneralNT User ID Using Visual C++ Pin
canniballl2-Sep-04 11:12
canniballl2-Sep-04 11:12 
GeneralRe: NT User ID Using Visual C++ Pin
Joaquín M López Muñoz2-Sep-04 11:29
Joaquín M López Muñoz2-Sep-04 11:29 
GeneralStartup computer automatically Pin
sschilachi2-Sep-04 11:03
sschilachi2-Sep-04 11:03 
GeneralRe: Startup computer automatically Pin
Mika Larramo2-Sep-04 12:20
Mika Larramo2-Sep-04 12:20 
GeneralRe: Startup computer automatically Pin
sschilachi2-Sep-04 21:01
sschilachi2-Sep-04 21:01 
GeneralRe: Startup computer automatically Pin
ThatsAlok3-Sep-04 4:19
ThatsAlok3-Sep-04 4:19 
GeneralRe: Startup computer automatically Pin
lonely_life2-Sep-04 16:27
lonely_life2-Sep-04 16:27 
GeneralRe: Startup computer automatically Pin
bmw50025-Sep-04 14:45
bmw50025-Sep-04 14:45 
Questiondundas vs. roguewave vs. ??? Pin
Maximilien2-Sep-04 10:30
Maximilien2-Sep-04 10:30 
AnswerRe: dundas vs. roguewave vs. ??? Pin
Antony M Kancidrowski3-Sep-04 2:27
Antony M Kancidrowski3-Sep-04 2:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.