Click here to Skip to main content
15,923,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalshell programming - adding a network place automatically Pin
21-Jun-01 21:49
suss21-Jun-01 21:49 
GeneralVery easy Pin
21-Jun-01 21:27
suss21-Jun-01 21:27 
GeneralRe: Very easy Pin
Olli21-Jun-01 21:55
Olli21-Jun-01 21:55 
QuestionHow to know a process is being debugged ? Pin
manio21-Jun-01 16:14
manio21-Jun-01 16:14 
AnswerRe: How to know a process is being debugged ? Pin
21-Jun-01 19:06
suss21-Jun-01 19:06 
AnswerRe: How to know a process is being debugged ? Pin
Michael Dunn21-Jun-01 21:50
sitebuilderMichael Dunn21-Jun-01 21:50 
AnswerRe: How to know a process is being debugged ? Pin
24-Jun-01 18:10
suss24-Jun-01 18:10 
GeneralReturning a CString. Pin
John Uhlenbrock21-Jun-01 10:36
John Uhlenbrock21-Jun-01 10:36 
I get crappy things when I try and return a CString. It goes a little like this...

CString lotsofcrap;

blah blah

return lotsofcrap;


ERROR Unhandled exception...yadda yaddda

CString::CString(const CString& stringSrc)
{
ASSERT(stringSrc.GetData()->nRefs != 0); //**** DEBUGGER GOES TO THIS LINE
if (stringSrc.GetData()->nRefs >= 0)
{
ASSERT(stringSrc.GetData() != _afxDataNil);
m_pchData = stringSrc.m_pchData;
InterlockedIncrement(&GetData()->nRefs);
}
else
{
Init();
*this = stringSrc.m_pchData;
}
}


------------------------------------------------------
Why do it now when you can put it off and do it tomorrow?
GeneralRe: Returning a CString. Pin
Tomasz Sowinski21-Jun-01 10:41
Tomasz Sowinski21-Jun-01 10:41 
GeneralRe: Returning a CString. Pin
John Uhlenbrock21-Jun-01 10:44
John Uhlenbrock21-Jun-01 10:44 
GeneralRe: Returning a CString. Pin
Andrew Peace21-Jun-01 10:50
Andrew Peace21-Jun-01 10:50 
GeneralRe: Returning a CString. Pin
John Uhlenbrock21-Jun-01 11:32
John Uhlenbrock21-Jun-01 11:32 
GeneralRe: Returning a CString. Pin
Carlos Antollini21-Jun-01 10:51
Carlos Antollini21-Jun-01 10:51 
GeneralRe: Returning a CString. Pin
Tomasz Sowinski21-Jun-01 10:52
Tomasz Sowinski21-Jun-01 10:52 
GeneralRe: Returning a CString. Pin
John Uhlenbrock21-Jun-01 11:39
John Uhlenbrock21-Jun-01 11:39 
GeneralRe: Returning a CString. Pin
Andrew Peace21-Jun-01 11:43
Andrew Peace21-Jun-01 11:43 
GeneralRe: Returning a CString. Pin
John Uhlenbrock21-Jun-01 11:54
John Uhlenbrock21-Jun-01 11:54 
GeneralRe: Returning a CString. Pin
Tomasz Sowinski21-Jun-01 23:24
Tomasz Sowinski21-Jun-01 23:24 
GeneralRe: Returning a CString. Pin
markkuk24-Jun-01 21:14
markkuk24-Jun-01 21:14 
GeneralRe: Returning a CString. Pin
21-Jun-01 10:56
suss21-Jun-01 10:56 
GeneralRe: Returning a CString. Pin
Tomasz Sowinski21-Jun-01 11:00
Tomasz Sowinski21-Jun-01 11:00 
GeneralRe: Returning a CString. Pin
Stephen Kellett22-Jun-01 3:54
Stephen Kellett22-Jun-01 3:54 
GeneralRe: Returning a CString. Pin
Tomasz Sowinski22-Jun-01 4:01
Tomasz Sowinski22-Jun-01 4:01 
GeneralRe: Returning a CString. Pin
21-Jun-01 12:20
suss21-Jun-01 12:20 
GeneralRemoving the window in MDI app Pin
Jake Palmer21-Jun-01 10:20
Jake Palmer21-Jun-01 10:20 

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.