Click here to Skip to main content
15,887,821 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Protect App Pin
Maximilien6-Mar-10 1:19
Maximilien6-Mar-10 1:19 
QuestionConverting char* to LPCSTR Pin
ArnorBld5-Mar-10 14:00
ArnorBld5-Mar-10 14:00 
AnswerRe: Converting char* to LPCSTR Pin
Avi Berger5-Mar-10 14:27
Avi Berger5-Mar-10 14:27 
GeneralRe: Converting char* to LPCSTR Pin
ArnorBld8-Mar-10 7:33
ArnorBld8-Mar-10 7:33 
QuestionProblem with one of the MFC new feature pack controls CMFCPropertyGridCtrl Pin
A&Ms5-Mar-10 11:10
A&Ms5-Mar-10 11:10 
Questionc++ and using public static members in a class Pin
Alan Kurlansky5-Mar-10 10:30
Alan Kurlansky5-Mar-10 10:30 
AnswerRe: c++ and using public static members in a class Pin
Chris Losinger5-Mar-10 10:57
professionalChris Losinger5-Mar-10 10:57 
AnswerRe: c++ and using public static members in a class Pin
Alain Rist5-Mar-10 11:08
Alain Rist5-Mar-10 11:08 
// MyClass.h
class MyClass
{
	static INT m_i;
	// ...
};
// if you want to keep it in definition part
__declspec(selectany) INT MyClass::m_i; // default initialized to 0


or
// MyClass.cpp
// ...
// if you want to have it in implementation part
INT MyClass::m_i; // default initialized to 0
// ...


cheers,
AR
When the wise person points at the moon the fool looks at the finger (Chinese proverb)

AnswerRe: c++ and using public static members in a class Pin
Avi Berger5-Mar-10 12:52
Avi Berger5-Mar-10 12:52 
AnswerRe: c++ and public static member functions - alternative approach Pin
Avi Berger5-Mar-10 13:26
Avi Berger5-Mar-10 13:26 
GeneralRe: c++ and public static member functions - alternative approach Pin
Alan Kurlansky6-Mar-10 11:34
Alan Kurlansky6-Mar-10 11:34 
GeneralRe: c++ and public static member functions - alternative approach Pin
Avi Berger6-Mar-10 16:43
Avi Berger6-Mar-10 16:43 
GeneralRe: c++ and public static member functions - alternative approach Pin
Alan Kurlansky6-Mar-10 11:35
Alan Kurlansky6-Mar-10 11:35 
QuestionBagh! Pointers Pin
Herboren5-Mar-10 9:53
Herboren5-Mar-10 9:53 
AnswerRe: Bagh! Pointers Pin
Chris Losinger5-Mar-10 10:31
professionalChris Losinger5-Mar-10 10:31 
AnswerRe: Bagh! Pointers Pin
David Crow5-Mar-10 10:48
David Crow5-Mar-10 10:48 
Questionthe "Decimal" data type in vc++ Pin
b-rad3115-Mar-10 8:17
b-rad3115-Mar-10 8:17 
AnswerRe: the "Decimal" data type in vc++ Pin
Chris Losinger5-Mar-10 8:19
professionalChris Losinger5-Mar-10 8:19 
AnswerRe: the "Decimal" data type in vc++ Pin
Nemanja Trifunovic5-Mar-10 8:25
Nemanja Trifunovic5-Mar-10 8:25 
GeneralRe: the "Decimal" data type in vc++ [modified] Pin
bob1697217-Mar-10 15:39
bob1697217-Mar-10 15:39 
AnswerRe: the "Decimal" data type in vc++ Pin
Alain Rist5-Mar-10 9:52
Alain Rist5-Mar-10 9:52 
QuestionCstring to char Pin
johnalek5-Mar-10 7:03
johnalek5-Mar-10 7:03 
AnswerRe: Cstring to char Pin
Chris Losinger5-Mar-10 7:17
professionalChris Losinger5-Mar-10 7:17 
AnswerRe: Cstring to char Pin
Rajesh R Subramanian5-Mar-10 7:40
professionalRajesh R Subramanian5-Mar-10 7:40 
Questionvector in space Pin
khomeyni5-Mar-10 7:03
khomeyni5-Mar-10 7:03 

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.