Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Share C file across dll boundaries Pin
Albert Holguin18-Feb-12 10:13
professionalAlbert Holguin18-Feb-12 10:13 
GeneralRe: Share C file across dll boundaries Pin
LionAM18-Feb-12 10:38
LionAM18-Feb-12 10:38 
GeneralRe: Share C file across dll boundaries Pin
LionAM18-Feb-12 12:17
LionAM18-Feb-12 12:17 
AnswerRe: Share C file across dll boundaries Pin
Albert Holguin18-Feb-12 14:25
professionalAlbert Holguin18-Feb-12 14:25 
GeneralRe: Share C file across dll boundaries Pin
LionAM18-Feb-12 22:10
LionAM18-Feb-12 22:10 
QuestionCString reference Pin
_Flaviu17-Feb-12 3:59
_Flaviu17-Feb-12 3:59 
GeneralRe: CString reference Pin
David Crow17-Feb-12 4:05
David Crow17-Feb-12 4:05 
AnswerRe: CString reference Pin
JackDingler17-Feb-12 10:22
JackDingler17-Feb-12 10:22 
You need to initialize it in the constructor.


C++
class CMyClass
{
public:
    CString m_DefaultErrorExt;
    CString & m_sErrorExt;

public:
    CMyClass(void) : sErrorExt(DefaultErrorExt) {}
    CMyClass(CString & ExternError) : sErrorExt(ExternError) {}
};

GeneralRe: CString reference Pin
JackDingler17-Feb-12 10:28
JackDingler17-Feb-12 10:28 
GeneralRe: CString reference Pin
_Flaviu17-Feb-12 19:57
_Flaviu17-Feb-12 19:57 
GeneralRe: CString reference Pin
JackDingler17-Feb-12 21:13
JackDingler17-Feb-12 21:13 
GeneralRe: CString reference Pin
Richard MacCutchan17-Feb-12 21:15
mveRichard MacCutchan17-Feb-12 21:15 
AnswerRe: CString reference Pin
bjorn_ht17-Feb-12 21:00
bjorn_ht17-Feb-12 21:00 
GeneralRe: CString reference Pin
_Flaviu19-Feb-12 9:16
_Flaviu19-Feb-12 9:16 
QuestionStatic Variable Pin
pix_programmer17-Feb-12 1:23
pix_programmer17-Feb-12 1:23 
AnswerRe: Static Variable Pin
CPallini17-Feb-12 1:48
mveCPallini17-Feb-12 1:48 
AnswerRe: Static Variable Pin
Chris Losinger17-Feb-12 1:49
professionalChris Losinger17-Feb-12 1:49 
QuestionVirtual Functions? Pin
msr_codeproject17-Feb-12 1:02
msr_codeproject17-Feb-12 1:02 
AnswerRe: Virtual Functions? Pin
CPallini17-Feb-12 2:15
mveCPallini17-Feb-12 2:15 
GeneralRe: Virtual Functions? Pin
msr_codeproject17-Feb-12 2:29
msr_codeproject17-Feb-12 2:29 
GeneralRe: Virtual Functions? Pin
CPallini17-Feb-12 2:42
mveCPallini17-Feb-12 2:42 
QuestionRe: Virtual Functions? Pin
David Crow17-Feb-12 2:40
David Crow17-Feb-12 2:40 
AnswerRe: Virtual Functions? PinPopular
Chuck O'Toole17-Feb-12 3:08
Chuck O'Toole17-Feb-12 3:08 
AnswerRe: Virtual Functions? Pin
jschell17-Feb-12 7:10
jschell17-Feb-12 7:10 
AnswerRe: Virtual Functions? Pin
JackDingler17-Feb-12 10:31
JackDingler17-Feb-12 10:31 

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.