Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "Assertion Failed" with thread and device context Pin
nautilusvn29-Jul-09 20:27
nautilusvn29-Jul-09 20:27 
GeneralRe: "Assertion Failed" with thread and device context Pin
Richard Andrew x6430-Jul-09 4:14
professionalRichard Andrew x6430-Jul-09 4:14 
AnswerRe: "Assertion Failed" with thread and device context Pin
krmed30-Jul-09 6:53
krmed30-Jul-09 6:53 
QuestionPassing multi-dimensional array from C# to Win32 C++ dll? [modified] [MOVED TO C++/CLI] Pin
devvvy29-Jul-09 16:03
devvvy29-Jul-09 16:03 
AnswerRe: Passing multi-dimensional array from C# to Win32 C++ dll? Pin
Richard Andrew x6429-Jul-09 16:48
professionalRichard Andrew x6429-Jul-09 16:48 
Questionerror C1083 Pin
shabbychic29-Jul-09 15:57
shabbychic29-Jul-09 15:57 
AnswerRe: error C1083 Pin
Richard Andrew x6429-Jul-09 16:47
professionalRichard Andrew x6429-Jul-09 16:47 
Questionhow to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 15:06
Neil Jigger29-Jul-09 15:06 
good day,

here is my problem on how to link the commandbutton to radio buttons (mfc) in c++:

i inserted 3 radiobuttons inside a groupbox with a caption "Mode of payments";

radio1 with a caption "1. Cash (10% discount)";
radio2 with a caption "2. Two payments (5 % interest)";
radio3 with a caption "3. Three payments (10% interest);

i also have two editboxes; editbox1 and editbox2.

1. with a static text "enter tuition fee:" value will be accepted in the first editbox.
2. with a static text "Your total tuition fee is:" will be displayed in the second editbox.

and one command button with a caption "Compute"

supposing i will select the second radio button which is "two payments (5% interest)" upon clicking
the command button "compute" the result should be displayed in the second editbox under "your total tuition
fee:" which is the computation on the value of the first editbox and on the second radiobutton and so on...

if i will not use a commandbutton "compute" caption (to do the calculation) i can do the code and get the right result by
calculating the value of the first editbox and on the radiobutton values, but when i will use commandbutton to do
the calculation on the value of the first editbox to the radiobuttons that is now my problem since i cannot link the radiobuttons
and the commandbutton...


Please anybody help me in solving this problem...i need sample code as guide in solving this problem and on my future related
projects...

code experts please help me...


thank again and thank you in advance...

neil
AnswerRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 15:45
professionalRichard Andrew x6429-Jul-09 15:45 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 15:48
Neil Jigger29-Jul-09 15:48 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 16:00
professionalRichard Andrew x6429-Jul-09 16:00 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 16:08
Neil Jigger29-Jul-09 16:08 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 16:13
professionalRichard Andrew x6429-Jul-09 16:13 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 16:17
Neil Jigger29-Jul-09 16:17 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 18:38
Neil Jigger29-Jul-09 18:38 
QuestionLPTSTR concatenation Pin
akhanal29-Jul-09 10:20
akhanal29-Jul-09 10:20 
QuestionRe: LPTSTR concatenation Pin
David Crow29-Jul-09 10:50
David Crow29-Jul-09 10:50 
AnswerRe: LPTSTR concatenation Pin
akhanal29-Jul-09 11:18
akhanal29-Jul-09 11:18 
QuestionLIBC.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Pin
stephen.hazel29-Jul-09 10:14
stephen.hazel29-Jul-09 10:14 
QuestionQuestion about Boost::Regex library Pin
msn9229-Jul-09 8:47
msn9229-Jul-09 8:47 
QuestionHow can I show my dialog on the TOP from other window dialog? Pin
THAQCD29-Jul-09 7:38
THAQCD29-Jul-09 7:38 
AnswerRe: How can I show my dialog on the TOP from other window dialog? Pin
Code-o-mat29-Jul-09 9:35
Code-o-mat29-Jul-09 9:35 
QuestionRe: How can I show my dialog on the TOP from other window dialog? Pin
David Crow29-Jul-09 9:45
David Crow29-Jul-09 9:45 
AnswerRe: How can I show my dialog on the TOP from other window dialog? Pin
THAQCD30-Jul-09 8:37
THAQCD30-Jul-09 8:37 
GeneralRe: How can I show my dialog on the TOP from other window dialog? Pin
David Crow1-Aug-09 16:56
David Crow1-Aug-09 16: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.