Click here to Skip to main content
15,921,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ESC problem Pin
James R. Twine12-May-06 5:14
James R. Twine12-May-06 5:14 
QuestionTest Individual DLL with cppunit? Pin
Hibelton12-May-06 4:40
Hibelton12-May-06 4:40 
QuestionProperty grid Pin
submit-CD12-May-06 4:00
submit-CD12-May-06 4:00 
AnswerRe: Property grid Pin
toxcct12-May-06 4:15
toxcct12-May-06 4:15 
Questionwhat is a static class Pin
kumar_mk12-May-06 3:39
kumar_mk12-May-06 3:39 
AnswerRe: what is a static class Pin
toxcct12-May-06 3:41
toxcct12-May-06 3:41 
GeneralRe: what is a static class Pin
kumar_mk12-May-06 4:58
kumar_mk12-May-06 4:58 
GeneralRe: what is a static class Pin
toxcct12-May-06 6:59
toxcct12-May-06 6:59 
dude !!!

didn't you read what i said, or didn't you understand ?

when i say you cannot define a class as static, it means that you CANNOT define a class like you do :

<font color=red>static</font> class CFoo {    // No !!! compilation error
                       // You cannot apply the static keyword to a type definition
    //...
 
};


what i said however is that you are allowed to declare an instance of a class as static, that means a variable which type is a user-defined type :
#include "Foo.h"
 
static CFoo foo;     // Allowed ! foo variable of type CFoo is static


now, what don't you understand ?
you'd certainly google the internet or even better, search a good C++ book for static concept...


TOXCCT >>> GEII power

[VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]
GeneralRe: what is a static class Pin
ThatsAlok12-May-06 21:14
ThatsAlok12-May-06 21:14 
AnswerRe: what is a static class Pin
Cedric Moonen12-May-06 3:43
Cedric Moonen12-May-06 3:43 
GeneralRe: what is a static class Pin
toxcct12-May-06 3:51
toxcct12-May-06 3:51 
GeneralRe: what is a static class Pin
Cedric Moonen12-May-06 3:54
Cedric Moonen12-May-06 3:54 
GeneralRe: what is a static class Pin
toxcct12-May-06 3:57
toxcct12-May-06 3:57 
GeneralRe: what is a static class Pin
Cedric Moonen12-May-06 4:02
Cedric Moonen12-May-06 4:02 
GeneralRe: what is a static class Pin
toxcct12-May-06 4:05
toxcct12-May-06 4:05 
GeneralRe: what is a static class Pin
ThatsAlok12-May-06 4:15
ThatsAlok12-May-06 4:15 
GeneralRe: what is a static class Pin
kumar_mk12-May-06 5:02
kumar_mk12-May-06 5:02 
AnswerRe: what is a static class Pin
ThatsAlok12-May-06 4:17
ThatsAlok12-May-06 4:17 
GeneralRe: what is a static class Pin
kumar_mk12-May-06 5:06
kumar_mk12-May-06 5:06 
AnswerRe: what is a static class Pin
Maxwell Chen12-May-06 7:18
Maxwell Chen12-May-06 7:18 
GeneralRe: what is a static class Pin
toxcct12-May-06 9:55
toxcct12-May-06 9:55 
AnswerRe: what is a static class Pin
Maxwell Chen12-May-06 16:35
Maxwell Chen12-May-06 16:35 
AnswerRe: what is a static class Pin
Stephen Hewitt12-May-06 20:09
Stephen Hewitt12-May-06 20:09 
AnswerRe: what is a static class Pin
Nemanja Trifunovic13-May-06 3:08
Nemanja Trifunovic13-May-06 3:08 
QuestionLNK1202 error Pin
koumodaki12-May-06 3:14
koumodaki12-May-06 3:14 

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.