Click here to Skip to main content
15,916,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change the Icon on Top left hand Corner? Pin
Alvaro Mendez11-Sep-03 9:37
Alvaro Mendez11-Sep-03 9:37 
GeneralRe: How to change the Icon on Top left hand Corner? Pin
Binayak11-Sep-03 9:48
Binayak11-Sep-03 9:48 
GeneralPlatform SDK Pin
Anonymous11-Sep-03 8:14
Anonymous11-Sep-03 8:14 
GeneralRe: Platform SDK Pin
vcplusplus11-Sep-03 8:27
vcplusplus11-Sep-03 8:27 
GeneralRe: Platform SDK Pin
Alexander M.,11-Sep-03 9:02
Alexander M.,11-Sep-03 9:02 
GeneralRe: Platform SDK Pin
Michael Dunn11-Sep-03 9:46
sitebuilderMichael Dunn11-Sep-03 9:46 
GeneralTree control becomes grayed Pin
Binayak11-Sep-03 6:34
Binayak11-Sep-03 6:34 
GeneralDialog Problem Pin
FieldHawk11-Sep-03 6:30
FieldHawk11-Sep-03 6:30 
Hi
Folks i am here with a problem
I did the followin things in my SDI VC application(MFC exe with default App wizrad options)

1.Created a Dialog Resource with a ComboBox(Attached a Control Variable to that m_ctrlCombo)
,attached a new class to it ( CTestDlg ).

2.Created object of CTestDlg in view class in OnLButtonDown()

[code]

void CTestView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default

CTestDlg dlg;

dlg.m_ctrlCombo.AddString("Alpha");
dlg.m_ctrlCombo.AddString("Beta");
dlg.DoModal();

CView::OnLButtonDown(nFlags, point);

}


[/code]

The Problem is that when i run the application and OnLButtonDown() Function is invoked

.I get a debug assetion failure

* "File: afxwin2.inl
Line 735 "

when i ignore it two times the Dialog is shown but no string attached to the comboBox




Plz help me out Folks to solve this.

Thanx in advance.

GeneralRe: Dialog Problem Pin
Maximilien11-Sep-03 7:47
Maximilien11-Sep-03 7:47 
GeneralRe: Dialog Problem Pin
Thomas Lau11-Sep-03 15:43
Thomas Lau11-Sep-03 15:43 
QuestionHow to configure Modem and DUN settings? Pin
coolvcguy11-Sep-03 6:10
coolvcguy11-Sep-03 6:10 
AnswerRe: How to configure Modem and DUN settings? Pin
Scozturk11-Sep-03 6:30
professionalScozturk11-Sep-03 6:30 
AnswerRe: How to configure Modem and DUN settings? Pin
vcplusplus11-Sep-03 8:22
vcplusplus11-Sep-03 8:22 
AnswerRe: How to configure Modem and DUN settings? Pin
David Crow11-Sep-03 8:49
David Crow11-Sep-03 8:49 
GeneralRe: How to configure Modem and DUN settings? Pin
coolvcguy12-Sep-03 8:35
coolvcguy12-Sep-03 8:35 
Questioncan't hide a dialog oninitdialog()? Pin
zecodela11-Sep-03 5:17
zecodela11-Sep-03 5:17 
AnswerRe: can't hide a dialog oninitdialog()? Pin
Jagadeesh VN11-Sep-03 5:39
Jagadeesh VN11-Sep-03 5:39 
GeneralRe: can't hide a dialog oninitdialog()? Pin
zecodela11-Sep-03 11:42
zecodela11-Sep-03 11:42 
AnswerRe: can't hide a dialog oninitdialog()? Pin
Nish Nishant11-Sep-03 5:54
sitebuilderNish Nishant11-Sep-03 5:54 
QuestionSetWordCharFormat can be undone?? Pin
mcguile25711-Sep-03 5:16
mcguile25711-Sep-03 5:16 
AnswerRe: SetWordCharFormat can be undone?? Pin
David Crow11-Sep-03 8:55
David Crow11-Sep-03 8:55 
AnswerRe: SetWordCharFormat can be undone?? Pin
mcguile25711-Sep-03 10:39
mcguile25711-Sep-03 10:39 
GeneralWinsock question Pin
Scozturk11-Sep-03 4:30
professionalScozturk11-Sep-03 4:30 
GeneralRe: Winsock question Pin
Jagadeesh VN11-Sep-03 4:44
Jagadeesh VN11-Sep-03 4:44 
GeneralRe: Winsock question Pin
Phil Speller11-Sep-03 6:08
Phil Speller11-Sep-03 6:08 

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.