Click here to Skip to main content
15,909,466 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to pass array as a parameter??? Pin
Russell'6-Feb-06 21:51
Russell'6-Feb-06 21:51 
GeneralRe: How to pass array as a parameter??? Pin
Ming Luo6-Feb-06 23:16
Ming Luo6-Feb-06 23:16 
GeneralRe: How to pass array as a parameter??? Pin
Russell'6-Feb-06 23:27
Russell'6-Feb-06 23:27 
AnswerRe: How to pass array as a parameter??? Pin
David Crow7-Feb-06 3:00
David Crow7-Feb-06 3:00 
QuestionUsage Count of a dll Pin
SanjaySMK6-Feb-06 20:20
SanjaySMK6-Feb-06 20:20 
AnswerRe: Usage Count of a dll Pin
Bob Stanneveld6-Feb-06 21:09
Bob Stanneveld6-Feb-06 21:09 
AnswerRe: Usage Count of a dll Pin
Stephen Hewitt6-Feb-06 23:32
Stephen Hewitt6-Feb-06 23:32 
QuestionDDX_Text(..) not getting generated by MFC?? Pin
aparnakishore6-Feb-06 19:42
aparnakishore6-Feb-06 19:42 
I am trying to put a simple edit control in the dialog box and on OK trying to echo the text in the edit box.
The On Button Clicked OK function looks like this
void CHelloDlgDlg::OnBnClickedOk()
{
UpdateData(TRUE);
AfxMessageBox(m_strMsg);
}
I right clicked on the edit control, added a variable called m_strMsg of type CString.
But on click of OK, I am getting a blank string. I debugged through to find out that my DoDataExchange method looks like this:
void CHelloDlgDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
whereas it is expected to look like this:
void CHelloDlgDlg::DoDataExchange(CDataExchange* pDX)
{
DDX_Text(pDX, IDC_EDIT1, m_strMsg);
CDialog::DoDataExchange(pDX);
}
I am working on Visual studio 2003, and I have created a new project in this framework as an MFC Application. Why is the DDX_Text(...)part of the code not getting generated??
Do I have a buggy version, or am I supposed to be including some files, or change settings or do the member variable assignation in a different way?? I am new to VS 2003, but have worked on VS 6 before. Pl help as I need to know before starting some more complex coding, if the s/w had a problem during installation.
Thanks
ARK
AnswerRe: DDX_Text(..) not getting generated by MFC?? Pin
-Dy7-Feb-06 4:02
-Dy7-Feb-06 4:02 
GeneralRe: DDX_Text(..) not getting generated by MFC?? Pin
aparnakishore7-Feb-06 18:35
aparnakishore7-Feb-06 18:35 
AnswerRe: DDX_Text(..) not getting generated by MFC?? Pin
Blake Miller7-Feb-06 6:20
Blake Miller7-Feb-06 6:20 
GeneralRe: DDX_Text(..) not getting generated by MFC?? Pin
aparnakishore7-Feb-06 18:38
aparnakishore7-Feb-06 18:38 
AnswerRe: DDX_Text(..) not getting generated by MFC?? Pin
aparnakishore7-Feb-06 19:07
aparnakishore7-Feb-06 19:07 
Questionchild windows (destroying controls in main window) Pin
nedimbakic6-Feb-06 19:33
nedimbakic6-Feb-06 19:33 
AnswerRe: child windows (destroying controls in main window) Pin
nedimbakic6-Feb-06 19:36
nedimbakic6-Feb-06 19:36 
AnswerRe: child windows (destroying controls in main window) Pin
Owner drawn6-Feb-06 19:42
Owner drawn6-Feb-06 19:42 
GeneralRe: child windows (destroying controls in main window) Pin
nedimbakic7-Feb-06 1:53
nedimbakic7-Feb-06 1:53 
GeneralRe: child windows (destroying controls in main window) Pin
Owner drawn7-Feb-06 16:44
Owner drawn7-Feb-06 16:44 
GeneralRe: child windows (destroying controls in main window) Pin
nedimbakic7-Feb-06 17:13
nedimbakic7-Feb-06 17:13 
GeneralRe: child windows (destroying controls in main window) Pin
Owner drawn7-Feb-06 17:16
Owner drawn7-Feb-06 17:16 
GeneralRe: child windows (destroying controls in main window) Pin
nedimbakic8-Feb-06 1:39
nedimbakic8-Feb-06 1:39 
QuestionHow too export MDI project FORMview contents to Powerpoint. Pin
star966-Feb-06 19:15
star966-Feb-06 19:15 
QuestionShowing file in edit control Pin
swaapu6-Feb-06 19:06
swaapu6-Feb-06 19:06 
AnswerRe: Showing file in edit control Pin
khan++6-Feb-06 19:44
khan++6-Feb-06 19:44 
GeneralRe: Showing file in edit control Pin
toxcct6-Feb-06 21:19
toxcct6-Feb-06 21:19 

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.