Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCalc can, but my code can't Pin
Waldermort8-Feb-08 7:30
Waldermort8-Feb-08 7:30 
GeneralRe: Calc can, but my code can't Pin
led mike8-Feb-08 8:05
led mike8-Feb-08 8:05 
GeneralRe: Calc can, but my code can't Pin
Waldermort8-Feb-08 8:09
Waldermort8-Feb-08 8:09 
GeneralRe: Calc can, but my code can't Pin
CPallini8-Feb-08 8:14
mveCPallini8-Feb-08 8:14 
GeneralRe: Calc can, but my code can't Pin
Waldermort8-Feb-08 8:19
Waldermort8-Feb-08 8:19 
GeneralRe: Calc can, but my code can't Pin
led mike8-Feb-08 8:28
led mike8-Feb-08 8:28 
GeneralRe: Calc can, but my code can't Pin
Waldermort8-Feb-08 8:34
Waldermort8-Feb-08 8:34 
GeneralRe: Calc can, but my code can't Pin
David Crow8-Feb-08 8:26
David Crow8-Feb-08 8:26 
WalderMouble wrote:
dZoomFactor = 1 / ( 1 << ( 16 - dwId ) );
dZoomFactor = 1 / ( 1 << ( 16 - 1 ) );
dZoomFactor = 1 / ( 1 << 15 );
dZoomFactor = 1 / 32768;
dZoomFactor = 0.000030517578125;


You should probably be using double constants (e.g., 1.0, 16.0), so that the math library is properly initialized.

BTW, your name wreaks havoc in the Quote Selected Text feature. It inserts a malformed </b> tag.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: Calc can, but my code can't Pin
Waldermort8-Feb-08 8:30
Waldermort8-Feb-08 8:30 
GeneralC++ library supported DLL Pin
George_George8-Feb-08 5:50
George_George8-Feb-08 5:50 
GeneralRe: C++ library supported DLL Pin
led mike8-Feb-08 6:38
led mike8-Feb-08 6:38 
GeneralRe: C++ library supported DLL Pin
George_George8-Feb-08 22:04
George_George8-Feb-08 22:04 
GeneralRe: C++ library supported DLL Pin
Hamid_RT10-Feb-08 21:17
Hamid_RT10-Feb-08 21:17 
GeneralRe: C++ library supported DLL Pin
George_George10-Feb-08 22:29
George_George10-Feb-08 22:29 
GeneralRe: C++ library supported DLL Pin
Hamid_RT12-Feb-08 3:02
Hamid_RT12-Feb-08 3:02 
GeneralRe: C++ library supported DLL Pin
George_George12-Feb-08 3:20
George_George12-Feb-08 3:20 
GeneralRe: C++ library supported DLL Pin
Hamid_RT12-Feb-08 4:15
Hamid_RT12-Feb-08 4:15 
GeneralRe: C++ library supported DLL Pin
George_George12-Feb-08 16:41
George_George12-Feb-08 16:41 
GeneralRe: C++ library supported DLL Pin
Hamid_RT12-Feb-08 18:24
Hamid_RT12-Feb-08 18:24 
GeneralRe: C++ library supported DLL Pin
George_George12-Feb-08 19:23
George_George12-Feb-08 19:23 
Question[Message Deleted] Pin
vptech198-Feb-08 5:36
vptech198-Feb-08 5:36 
GeneralRe: FtpGetFile() returns error In windows Pin
Mark Salsbery8-Feb-08 11:44
Mark Salsbery8-Feb-08 11:44 
GeneralRe: [Message Deleted] Pin
Hamid_RT10-Feb-08 21:07
Hamid_RT10-Feb-08 21:07 
GeneralRe: [Message Deleted] Pin
vptech1910-Feb-08 22:00
vptech1910-Feb-08 22:00 
GeneralRe: [Message Deleted] Pin
Hamid_RT11-Feb-08 3:38
Hamid_RT11-Feb-08 3:38 

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.