Click here to Skip to main content
15,915,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC and DLL Pin
Doug Mitchell23-Aug-04 6:20
Doug Mitchell23-Aug-04 6:20 
GeneralRe: MFC and DLL Pin
SylL23-Aug-04 22:42
SylL23-Aug-04 22:42 
GeneralRe: MFC and DLL Pin
SylL23-Aug-04 23:17
SylL23-Aug-04 23:17 
GeneralRe: MFC and DLL Pin
SylL23-Aug-04 23:57
SylL23-Aug-04 23:57 
Questionhow to auto load from ini esp the numbers from the ini file Pin
ELY M.23-Aug-04 5:59
ELY M.23-Aug-04 5:59 
AnswerRe: how to auto load from ini esp the numbers from the ini file Pin
David Salter23-Aug-04 6:07
David Salter23-Aug-04 6:07 
AnswerRe: how to auto load from ini esp the numbers from the ini file Pin
David Crow23-Aug-04 7:50
David Crow23-Aug-04 7:50 
Generalemo75u Pin
emo75u23-Aug-04 4:28
emo75u23-Aug-04 4:28 
I have two edit controls A and B(IDC_A,IDC_B). Their member variables are type "double". If I change A, B has automatically change (by the realationship m_myB = 2*m_myA). I have the following code (received from a member of this community)

..
void CYourDialog::OnChangeIDC_A()
{ CString str;
CWnd *pCtrl = GetDlgItem(IDC_A);
if(pCtrl)
{ pCtrl->GetWindowText(str); GetDlgItem(IDC_B)->SetWindowText(str);
}
}
In general, the code works well. That means, that the value of edit control A automatically appear in B.
But : My problem (due to I am new in C++): Where is my function (m_myB = 2*m_myA)to be placed within the code above? The program gets problems because str is a string and the variables are double. Maybe I have to use other function instead of GetWindowText ?

Thanks a lot.
GeneralRe: emo75u Pin
Cedric Moonen23-Aug-04 4:33
Cedric Moonen23-Aug-04 4:33 
GeneralCTreeCtrl with checkboxes Pin
фил23-Aug-04 3:41
фил23-Aug-04 3:41 
GeneralRe: CTreeCtrl with checkboxes Pin
vcplusplus23-Aug-04 5:16
vcplusplus23-Aug-04 5:16 
Generalexit( ); Error descriptions in VC++ 7! Pin
CreepingFeature23-Aug-04 1:55
CreepingFeature23-Aug-04 1:55 
GeneralRe: exit( ); Error descriptions in VC++ 7! Pin
jhwurmbach23-Aug-04 2:18
jhwurmbach23-Aug-04 2:18 
GeneralBounding box of a set of points... Pin
Anonymous23-Aug-04 1:09
Anonymous23-Aug-04 1:09 
GeneralRe: Bounding box of a set of points... Pin
Cedric Moonen23-Aug-04 1:20
Cedric Moonen23-Aug-04 1:20 
GeneralRe: Bounding box of a set of points... Pin
Anonymous23-Aug-04 2:32
Anonymous23-Aug-04 2:32 
GeneralRe: Bounding box of a set of points... Pin
Maximilien23-Aug-04 2:46
Maximilien23-Aug-04 2:46 
GeneralRe: Bounding box of a set of points... Pin
Cedric Moonen23-Aug-04 2:55
Cedric Moonen23-Aug-04 2:55 
GeneralRe: Bounding box of a set of points... Pin
Anonymous23-Aug-04 3:23
Anonymous23-Aug-04 3:23 
GeneralRe: Bounding box of a set of points... Pin
Maximilien23-Aug-04 3:30
Maximilien23-Aug-04 3:30 
GeneralRe: Bounding box of a set of points... Pin
Anonymous23-Aug-04 3:35
Anonymous23-Aug-04 3:35 
GeneralRe: Bounding box of a set of points... Pin
Cedric Moonen23-Aug-04 3:30
Cedric Moonen23-Aug-04 3:30 
GeneralRe: Bounding box of a set of points... Pin
Anonymous23-Aug-04 3:42
Anonymous23-Aug-04 3:42 
GeneralRe: Bounding box of a set of points... Pin
Maximilien23-Aug-04 4:04
Maximilien23-Aug-04 4:04 
GeneralRe: Bounding box of a set of points... Pin
Cedric Moonen23-Aug-04 4:15
Cedric Moonen23-Aug-04 4:15 

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.