Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetDefaultConnect() in CRecordset? Pin
Le@rner29-Jun-08 23:19
Le@rner29-Jun-08 23:19 
GeneralRe: GetDefaultConnect() in CRecordset? Pin
Mark Salsbery30-Jun-08 6:05
Mark Salsbery30-Jun-08 6:05 
QuestionHBITMAP handle Pin
trioum30-May-08 19:12
trioum30-May-08 19:12 
AnswerRe: HBITMAP handle Pin
Rajkumar R30-May-08 23:02
Rajkumar R30-May-08 23:02 
QuestionWhat about (_variant_t)false and _variant_t(false)? Pin
followait30-May-08 18:12
followait30-May-08 18:12 
Question[MFC] Add a CView zone into a CFormView ?? Pin
Schehaider_Aymen30-May-08 12:59
Schehaider_Aymen30-May-08 12:59 
AnswerRe: [MFC] Add a CView zone into a CFormView ?? Pin
Rajkumar R30-May-08 23:15
Rajkumar R30-May-08 23:15 
QuestionHaving trouble retreiving a integer value from the Edit Control Box. Pin
hilop30-May-08 7:32
hilop30-May-08 7:32 
Is there a way to retreive the data entered in a Edit Control Box while using a numerical Type variable? I've seen lots of examples that retreive the data when the variable Type is a CString, but none when it is numerical. In my dialog box I've got a Edit Control Box and I've added a variable of integer type so the number entered could be retreived without doing a conversion. But the value is always zero no mater what is entered. The following is some of the code:

Edit_Numbers_Dlg::Edit_Numbers_Dlg(CWnd* pParent /*=NULL*/)
: CDialog(Edit_Numbers_Dlg::IDD, pParent)
{
//{{AFX_DATA_INIT(Edit_Numbers_Dlg)
m_entered_number = 0;
//}}AFX_DATA_INIT
}


void Edit_Numbers_Dlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Edit_Numbers_Dlg)
DDX_Text(pDX, IDC_ENTERED_NUMBER_EDIT, m_entered_number);
DDV_MinMaxInt(pDX, m_entered_number, 0, 999999);
//}}AFX_DATA_MAP
}

void Edit_Numbers_Dlg::SearchNumbers()
{
for( int z=0; z<counter-1; z++="" )<br="" mode="hold"> {
if( oldnumbers[z] == m_entered_number )
found = 1;

}
}
AnswerRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
David Crow30-May-08 7:57
David Crow30-May-08 7:57 
GeneralRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
hilop30-May-08 9:07
hilop30-May-08 9:07 
GeneralRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
Joe Woodbury30-May-08 11:20
professionalJoe Woodbury30-May-08 11:20 
GeneralRe: Having trouble retreiving a integer value from the Edit Control Box. [modified] Pin
Nelek1-Jun-08 5:53
protectorNelek1-Jun-08 5:53 
GeneralRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
Joe Woodbury1-Jun-08 11:40
professionalJoe Woodbury1-Jun-08 11:40 
GeneralRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
Nelek2-Jun-08 4:32
protectorNelek2-Jun-08 4:32 
AnswerRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
Michael Schubert30-May-08 12:49
Michael Schubert30-May-08 12:49 
QuestionRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
Rajesh R Subramanian30-May-08 21:01
professionalRajesh R Subramanian30-May-08 21:01 
AnswerRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
Nelek2-Jun-08 6:22
protectorNelek2-Jun-08 6:22 
AnswerRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
hilop2-Jun-08 7:00
hilop2-Jun-08 7:00 
GeneralRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
Nelek3-Jun-08 21:38
protectorNelek3-Jun-08 21:38 
AnswerRe: Having trouble retreiving a integer value from the Edit Control Box. Pin
ThatsAlok20-Jul-09 1:04
ThatsAlok20-Jul-09 1:04 
QuestionCreating a .docx file programatically? Pin
ritz123430-May-08 5:12
ritz123430-May-08 5:12 
AnswerRe: Creating a .docx file programatically? Pin
Cedric Moonen30-May-08 6:05
Cedric Moonen30-May-08 6:05 
GeneralRe: Creating a .docx file programatically? Pin
led mike30-May-08 6:13
led mike30-May-08 6:13 
AnswerRe: Creating a .docx file programatically? Pin
led mike30-May-08 6:13
led mike30-May-08 6:13 
AnswerRe: Creating a .docx file programatically? Pin
David Crow30-May-08 7:56
David Crow30-May-08 7:56 

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.