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

C / C++ / MFC

 
GeneralRe: Preventing change of key fields in CRecordView? Pin
Anders Gustafsson17-Jan-06 8:49
Anders Gustafsson17-Jan-06 8:49 
GeneralRe: Preventing change of key fields in CRecordView? Pin
David Crow17-Jan-06 8:53
David Crow17-Jan-06 8:53 
GeneralRe: Preventing change of key fields in CRecordView? Pin
Anders Gustafsson17-Jan-06 9:06
Anders Gustafsson17-Jan-06 9:06 
AnswerRe: Preventing change of key fields in CRecordView? Pin
Phil J Pearson17-Jan-06 2:55
Phil J Pearson17-Jan-06 2:55 
GeneralRe: Preventing change of key fields in CRecordView? Pin
Anders Gustafsson17-Jan-06 3:02
Anders Gustafsson17-Jan-06 3:02 
GeneralRe: Preventing change of key fields in CRecordView? Pin
Phil J Pearson17-Jan-06 6:25
Phil J Pearson17-Jan-06 6:25 
GeneralRe: Preventing change of key fields in CRecordView? Pin
Anders Gustafsson17-Jan-06 7:09
Anders Gustafsson17-Jan-06 7:09 
QuestionHow do I get font width and height in pixels ? Pin
udiraz16-Jan-06 7:40
udiraz16-Jan-06 7:40 
AnswerRe: How do I get font width and height in pixels ? Pin
basementman16-Jan-06 7:47
basementman16-Jan-06 7:47 
GeneralRe: How do I get font width and height in pixels ? Pin
udiraz17-Jan-06 22:35
udiraz17-Jan-06 22:35 
GeneralRe: How do I get font width and height in pixels ? Pin
basementman18-Jan-06 4:11
basementman18-Jan-06 4:11 
GeneralRe: How do I get font width and height in pixels ? Pin
udiraz18-Jan-06 23:11
udiraz18-Jan-06 23:11 
GeneralRe: How do I get font width and height in pixels ? Pin
Shraddhan22-Jan-06 22:09
Shraddhan22-Jan-06 22:09 
GeneralRe: How do I get font width and height in pixels ? Pin
udiraz22-Jan-06 22:20
udiraz22-Jan-06 22:20 
GeneralRe: How do I get font width and height in pixels ? Pin
Shraddhan22-Jan-06 23:55
Shraddhan22-Jan-06 23:55 
GeneralRe: How do I get font width and height in pixels ? Pin
udiraz23-Jan-06 0:42
udiraz23-Jan-06 0:42 
QuestionSSE/SSE2 optimization with VC 8.0 Pin
pgrohs16-Jan-06 7:11
pgrohs16-Jan-06 7:11 
QuestionBeginner Visual c++ , code for adding two integers Pin
Technobizz16-Jan-06 6:55
Technobizz16-Jan-06 6:55 
AnswerRe: Beginner Visual c++ , code for adding two integers Pin
Bob Flynn16-Jan-06 7:18
Bob Flynn16-Jan-06 7:18 
AnswerRe: Beginner Visual c++ , code for adding two integers Pin
toxcct16-Jan-06 7:21
toxcct16-Jan-06 7:21 
hi techno,

ok, lets sum up.

there are many ways to make a calculator, that i think my VisualCalc is not exactly what you are designing, am i wrong ? Wink | ;)

you're having buttons on the GUI, so, i think you have to store the result in a member each time it is recalculated.

as you seem very beginner, i'll consider you're calculation engine class is written within the UI dialogBox class (still wrong with this ? Poke tongue | ;-P )

- so, add a member in the class to store the result (lets say float m_fResult;)

- then, when you press an operation button (like '+') you have to store somewhere that it is an addition to be performed (design an type which enumerated the possible operations, and make a member of that type (say m_Operation) in your class which will store the operation to perform (here, ADDITION).

- then, the user types its number, and when then equal button is pressed ('='), you test the m_Operation variable.
if m_Operation == ADDITION Then
Add m_Result + lastly typed value
store the new value into m_Result
End If

any more help ?


TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VisualCalc 3.0]
General[Message Deleted]...and... Pin
toxcct16-Jan-06 7:46
toxcct16-Jan-06 7:46 
GeneralRe: :mad: :mad: :mad: :mad: :mad: Pin
BlackDice16-Jan-06 8:18
BlackDice16-Jan-06 8:18 
GeneralRe: :mad: :mad: :mad: :mad: :mad: Pin
Nish Nishant16-Jan-06 8:52
sitebuilderNish Nishant16-Jan-06 8:52 
GeneralRe: :mad: :mad: :mad: :mad: :mad: Pin
Bob Flynn16-Jan-06 10:22
Bob Flynn16-Jan-06 10:22 
GeneralRe: :mad: :mad: :mad: :mad: :mad: Pin
ThatsAlok16-Jan-06 17:00
ThatsAlok16-Jan-06 17:00 

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.