Click here to Skip to main content
15,868,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: assertion failure and "user break point called from code at 0x7c90120e" Pin
Stefan_Lang10-Jul-11 22:33
Stefan_Lang10-Jul-11 22:33 
QuestionCan I create another CMutex object when a named CMutex object being locked? Pin
Jun Du7-Jul-11 9:29
Jun Du7-Jul-11 9:29 
AnswerRe: Can I create another CMutex object when a named CMutex object being locked? Pin
CPallini7-Jul-11 10:36
mveCPallini7-Jul-11 10:36 
GeneralRe: Can I create another CMutex object when a named CMutex object being locked? Pin
Jun Du7-Jul-11 13:09
Jun Du7-Jul-11 13:09 
AnswerRe: Can I create another CMutex object when a named CMutex object being locked? Pin
Albert Holguin7-Jul-11 13:48
professionalAlbert Holguin7-Jul-11 13:48 
GeneralRe: Can I create another CMutex object when a named CMutex object being locked? Pin
CPallini7-Jul-11 21:26
mveCPallini7-Jul-11 21:26 
GeneralRe: Can I create another CMutex object when a named CMutex object being locked? Pin
ThatsAlok7-Jul-11 21:33
ThatsAlok7-Jul-11 21:33 
QuestionCComboBox in a Modeless Dialog Pin
softwaremonkey7-Jul-11 8:08
softwaremonkey7-Jul-11 8:08 
OK, I'm going mad here. I have a dialog class which I am creating from a dialog resource and displaying as modeless. I have data members assigned to the various controls and most of them work fine, except the CComboBox data member. I am trying to add some string data to the control in the CMyDialog::OnCreate(LPCREATESTRUCT lpCreateStruct) but it asserts because the control's hwnd is null. Do I need to do anything special with a CComboBox? My code is like this...

int CFlushDialog::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;

	SetWindowPos(NULL, m_nXPos, m_nYPos, 0, 0, SWP_NOSIZE | SWP_NOZORDER);

	m_comboDataMember.AddString("Hello");   // BOOM!
        // Other data members CEdit, CButton work OK
	return 0;
}


I display the dialog like this...
m_flushDialog.Create(IDD_FLUSH_DLG, this);
m_flushDialog.ShowWindow(SW_SHOW);

Anyone have any ideas? Confused | :confused:

Tony
QuestionRe: CComboBox in a Modeless Dialog Pin
Maximilien7-Jul-11 8:20
Maximilien7-Jul-11 8:20 
AnswerRe: CComboBox in a Modeless Dialog Pin
Richard MacCutchan7-Jul-11 9:22
mveRichard MacCutchan7-Jul-11 9:22 
GeneralRe: CComboBox in a Modeless Dialog Pin
softwaremonkey7-Jul-11 10:59
softwaremonkey7-Jul-11 10:59 
AnswerRe: CComboBox in a Modeless Dialog Pin
Albert Holguin7-Jul-11 11:00
professionalAlbert Holguin7-Jul-11 11:00 
QuestionPure virtual base class question Pin
Erudite_Eric6-Jul-11 22:56
Erudite_Eric6-Jul-11 22:56 
AnswerRe: Pure virtual base class question Pin
వేంకటనారాయణ(venkatmakam)6-Jul-11 23:23
వేంకటనారాయణ(venkatmakam)6-Jul-11 23:23 
GeneralRe: Pure virtual base class question Pin
Erudite_Eric7-Jul-11 0:31
Erudite_Eric7-Jul-11 0:31 
GeneralRe: Pure virtual base class question Pin
Richard MacCutchan7-Jul-11 1:36
mveRichard MacCutchan7-Jul-11 1:36 
GeneralRe: Pure virtual base class question Pin
Erudite_Eric7-Jul-11 22:28
Erudite_Eric7-Jul-11 22:28 
GeneralRe: Pure virtual base class question Pin
Richard MacCutchan7-Jul-11 23:02
mveRichard MacCutchan7-Jul-11 23:02 
GeneralRe: Pure virtual base class question Pin
Niklas L7-Jul-11 8:54
Niklas L7-Jul-11 8:54 
AnswerRe: Pure virtual base class question Pin
CPallini7-Jul-11 2:52
mveCPallini7-Jul-11 2:52 
GeneralRe: Pure virtual base class question Pin
Erudite_Eric7-Jul-11 22:31
Erudite_Eric7-Jul-11 22:31 
QuestionRe: Pure virtual base class question Pin
Maximilien7-Jul-11 3:10
Maximilien7-Jul-11 3:10 
AnswerRe: Pure virtual base class question Pin
CPallini7-Jul-11 3:14
mveCPallini7-Jul-11 3:14 
GeneralRe: Pure virtual base class question Pin
Maximilien7-Jul-11 3:32
Maximilien7-Jul-11 3:32 
QuestionRe: Pure virtual base class question Pin
CPallini7-Jul-11 10:27
mveCPallini7-Jul-11 10:27 

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.