Click here to Skip to main content
15,896,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Use MFC in.... Pin
ddspliting18-Sep-07 7:35
ddspliting18-Sep-07 7:35 
Questionconversion from double to float Pin
KASR118-Sep-07 1:10
KASR118-Sep-07 1:10 
AnswerRe: conversion from double to float Pin
Chris Losinger18-Sep-07 1:24
professionalChris Losinger18-Sep-07 1:24 
GeneralRe: conversion from double to float Pin
nbugalia18-Sep-07 2:11
nbugalia18-Sep-07 2:11 
AnswerRe: conversion from double to float Pin
Russell'18-Sep-07 2:17
Russell'18-Sep-07 2:17 
JokeRe: conversion from double to float Pin
Nelek18-Sep-07 3:48
protectorNelek18-Sep-07 3:48 
GeneralRe: conversion from double to float Pin
Russell'18-Sep-07 4:07
Russell'18-Sep-07 4:07 
AnswerRe: conversion from double to float Pin
Mike Dimmick18-Sep-07 4:30
Mike Dimmick18-Sep-07 4:30 
What Every Computer Scientist Should Know About Floating-Point Arithmetic[^].

See also this post[^] of mine about rounding in SQL Server.

If you need an exact decimal, perhaps for currency values, use a scaled integer. These are harder to find in C++, there's no standard implementation as far as I know, but basically treating an integer as if it were in cents rather than dollars, or pence rather than pounds, generally works pretty well.

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: conversion from double to float Pin
KASR118-Sep-07 17:56
KASR118-Sep-07 17:56 
GeneralRe: conversion from double to float Pin
David Crow19-Sep-07 2:39
David Crow19-Sep-07 2:39 
Questionadding directory structure tree in a tree control in mfc Pin
Dhiraj kumar Saini18-Sep-07 0:36
Dhiraj kumar Saini18-Sep-07 0:36 
AnswerRe: adding directory structure tree in a tree control in mfc Pin
Russell'18-Sep-07 1:02
Russell'18-Sep-07 1:02 
GeneralRe: adding directory structure tree in a tree control in mfc Pin
Dhiraj kumar Saini18-Sep-07 2:02
Dhiraj kumar Saini18-Sep-07 2:02 
GeneralRe: adding directory structure tree in a tree control in mfc Pin
Russell'18-Sep-07 2:13
Russell'18-Sep-07 2:13 
QuestionRe: adding directory structure tree in a tree control in mfc Pin
Hamid_RT18-Sep-07 2:57
Hamid_RT18-Sep-07 2:57 
AnswerRe: adding directory structure tree in a tree control in mfc Pin
Dhiraj kumar Saini18-Sep-07 3:14
Dhiraj kumar Saini18-Sep-07 3:14 
GeneralRe: adding directory structure tree in a tree control in mfc Pin
Russell'18-Sep-07 4:03
Russell'18-Sep-07 4:03 
GeneralRe: adding directory structure tree in a tree control in mfc Pin
Dhiraj kumar Saini18-Sep-07 23:25
Dhiraj kumar Saini18-Sep-07 23:25 
Questionhow to use navigate function of CWebBrowser2 class in different classes other than MainFrame and View class? Pin
AnayKulkarni18-Sep-07 0:34
AnayKulkarni18-Sep-07 0:34 
QuestionNot able to get Text From Rich Edit [modified] Pin
GauranG Shah18-Sep-07 0:33
GauranG Shah18-Sep-07 0:33 
AnswerRe: Not able to get Text From Rich Edit Pin
nbugalia18-Sep-07 1:35
nbugalia18-Sep-07 1:35 
GeneralRe: Not able to get Text From Rich Edit Pin
GauranG Shah18-Sep-07 1:47
GauranG Shah18-Sep-07 1:47 
GeneralRe: Not able to get Text From Rich Edit Pin
nbugalia18-Sep-07 2:14
nbugalia18-Sep-07 2:14 
GeneralRe: Not able to get Text From Rich Edit Pin
GauranG Shah18-Sep-07 2:37
GauranG Shah18-Sep-07 2:37 
GeneralRe: Not able to get Text From Rich Edit Pin
nbugalia18-Sep-07 2:55
nbugalia18-Sep-07 2:55 

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.