Click here to Skip to main content
16,006,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: disable individual rows of a listctrl Pin
Swinefeaster11-Nov-02 20:40
Swinefeaster11-Nov-02 20:40 
GeneralRe: disable individual rows of a listctrl Pin
Michael Dunn11-Nov-02 16:55
sitebuilderMichael Dunn11-Nov-02 16:55 
GeneralRe: disable individual rows of a listctrl Pin
Anonymous11-Nov-02 20:38
Anonymous11-Nov-02 20:38 
GeneralCannot figure it out Pin
ed987111-Nov-02 13:01
ed987111-Nov-02 13:01 
GeneralRe: Cannot figure it out Pin
Christian Graus11-Nov-02 17:19
protectorChristian Graus11-Nov-02 17:19 
GeneralCLabel control with property sheet question Pin
DalTXColtsFan11-Nov-02 12:53
sussDalTXColtsFan11-Nov-02 12:53 
GeneralCSocket::Receive (from more than one computer) Pin
Walote11-Nov-02 10:47
Walote11-Nov-02 10:47 
GeneralCString from a UI Thread Pin
Anonymous11-Nov-02 10:25
Anonymous11-Nov-02 10:25 
Hello,
I have a UI thread and I do a PostMessage from the thread to the application with the lParam set as a CString.. in my receiving function i do a

LRESULT CMainFrame::OnMarkOffLine(WPARAM wParam, LPARAM lParam)
{
	CString* name = (CString*)lParam;
	CString strName = *name;
..SNIP........


but i am getting a access violation here...

CString::CString(const CString& stringSrc)
{
	ASSERT(stringSrc.GetData()->nRefs != 0); <-Here
	if (stringSrc.GetData()->nRefs >= 0)
	{
		ASSERT(stringSrc.GetData() != _afxDataNil);
		m_pchData = stringSrc.m_pchData;
		InterlockedIncrement(&GetData()->nRefs);
	}
	else
	{
		Init();
		*this = stringSrc.m_pchData;
	}
}


What am I doing wrong??
GeneralRe: CString from a UI Thread Pin
dabs11-Nov-02 10:39
dabs11-Nov-02 10:39 
GeneralRe: CString from a UI Thread Pin
Anonymous11-Nov-02 10:45
Anonymous11-Nov-02 10:45 
GeneralThis seemed to fix it.. weird Pin
Anonymous11-Nov-02 10:59
Anonymous11-Nov-02 10:59 
GeneralRe: Its not fixed Pin
Anonymous11-Nov-02 11:26
Anonymous11-Nov-02 11:26 
GeneralRe: CString from a UI Thread Pin
Swinefeaster11-Nov-02 14:07
Swinefeaster11-Nov-02 14:07 
GeneralRe: CString from a UI Thread Pin
peterchen11-Nov-02 14:18
peterchen11-Nov-02 14:18 
GeneralRe: CString from a UI Thread Pin
Anonymous11-Nov-02 14:56
Anonymous11-Nov-02 14:56 
GeneralRe: CString from a UI Thread Pin
Swinefeaster13-Nov-02 13:28
Swinefeaster13-Nov-02 13:28 
QuestionHow to check if my PopUp menu is shown? Pin
Daniel Strigl11-Nov-02 10:15
Daniel Strigl11-Nov-02 10:15 
AnswerRe: How to check if my PopUp menu is shown? Pin
567890123411-Nov-02 21:07
567890123411-Nov-02 21:07 
GeneralView Class information Pin
act_x11-Nov-02 10:13
act_x11-Nov-02 10:13 
GeneralRe: View Class information Pin
Dave Bryant11-Nov-02 13:22
Dave Bryant11-Nov-02 13:22 
GeneralShellExecute / Multi-Instances Pin
JoeSox11-Nov-02 10:10
JoeSox11-Nov-02 10:10 
GeneralRe: ShellExecute / Multi-Instances Pin
dabs11-Nov-02 11:06
dabs11-Nov-02 11:06 
GeneralRe: ShellExecute / Multi-Instances Pin
JoeSox12-Nov-02 3:58
JoeSox12-Nov-02 3:58 
GeneralDesign Recommendation. Warning - long-g-g. Pin
11-Nov-02 9:43
suss11-Nov-02 9:43 
QuestionWhich font is it using? Pin
ed987111-Nov-02 9:26
ed987111-Nov-02 9:26 

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.