Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: A CLASS TO CONTROL SOME BITMAPS Pin
«_Superman_»11-Jul-09 20:15
professional«_Superman_»11-Jul-09 20:15 
QuestionRe: A CLASS TO CONTROL SOME BITMAPS Pin
Dr.FIA11-Jul-09 20:50
Dr.FIA11-Jul-09 20:50 
QuestionI need help about searching and deleting files? Pin
jon ray11-Jul-09 17:47
jon ray11-Jul-09 17:47 
AnswerRe: I need help about searching and deleting files? Pin
Hamid_RT11-Jul-09 19:43
Hamid_RT11-Jul-09 19:43 
AnswerRe: I need help about searching and deleting files? Pin
«_Superman_»11-Jul-09 19:51
professional«_Superman_»11-Jul-09 19:51 
GeneralRe: I need help about searching and deleting files? Pin
jon ray11-Jul-09 20:09
jon ray11-Jul-09 20:09 
GeneralRe: I need help about searching and deleting files? Pin
«_Superman_»11-Jul-09 20:13
professional«_Superman_»11-Jul-09 20:13 
Questiona Class Decleration ?? Pin
csipahi11-Jul-09 14:30
csipahi11-Jul-09 14:30 
Here is the class declaration.
There is no any interesting point.
class Sample
{
protected:
	struct State
	{
		int q;
		long a;
		char z;
	};
	State m_state;
public:
	Sample(){	Create();}
	~Sample() { Destroy(); }
	void Create() 
	{
		m_state.q = 10;
	}
	void Destroy()
	{

	}
	int getINT(){return m_state.q;}
};


But here is interesting. What is this???. Decleration. Definition. I Dont understand and i dont find any information about this part.

<code>
Sample& GetSample()
{
    static Sample state;
    return state;
}
</code>



The orginal parts of this code. in Directx SDK DXUT.cpp Smile | :)

Thank You!!!
AnswerRe: a Class Decleration ?? Pin
Stuart Dootson11-Jul-09 15:18
professionalStuart Dootson11-Jul-09 15:18 
QuestionInterupting a Loop Pin
KinXen11-Jul-09 14:12
KinXen11-Jul-09 14:12 
AnswerRe: Interupting a Loop Pin
Adam Maras11-Jul-09 15:15
Adam Maras11-Jul-09 15:15 
QuestionRe: Interupting a Loop Pin
David Crow11-Jul-09 15:44
David Crow11-Jul-09 15:44 
Questionsocket api's recv and UTF-8 Pin
invictus311-Jul-09 13:04
invictus311-Jul-09 13:04 
AnswerRe: socket api's recv and UTF-8 Pin
Nemanja Trifunovic11-Jul-09 13:41
Nemanja Trifunovic11-Jul-09 13:41 
AnswerRe: socket api's recv and UTF-8 Pin
markkuk12-Jul-09 6:41
markkuk12-Jul-09 6:41 
QuestionCreating MODAL Dialog? Pin
dipuks11-Jul-09 8:54
dipuks11-Jul-09 8:54 
GeneralRe: Creating MODAL Dialog? Pin
josda100011-Jul-09 9:02
josda100011-Jul-09 9:02 
AnswerRe: Creating MODAL Dialog? Pin
Stuart Dootson11-Jul-09 9:12
professionalStuart Dootson11-Jul-09 9:12 
AnswerCMFCRibbonStatusBarPane [geeze] Pin
Ed K11-Jul-09 7:58
Ed K11-Jul-09 7:58 
QuestionGet Default shell command Pin
vikrant kpr11-Jul-09 6:18
vikrant kpr11-Jul-09 6:18 
AnswerRe: Get Default shell command Pin
Stuart Dootson11-Jul-09 6:37
professionalStuart Dootson11-Jul-09 6:37 
AnswerRe: Get Default shell command Pin
«_Superman_»11-Jul-09 16:34
professional«_Superman_»11-Jul-09 16:34 
GeneralRe: Get Default shell command Pin
vikrant kpr11-Jul-09 17:10
vikrant kpr11-Jul-09 17:10 
GeneralRe: Get Default shell command Pin
«_Superman_»11-Jul-09 17:16
professional«_Superman_»11-Jul-09 17:16 
GeneralRe: Get Default shell command Pin
vikrant kpr11-Jul-09 20:07
vikrant kpr11-Jul-09 20:07 

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.