Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DISP_E_UNKNOWNNAME Pin
CPallini18-Sep-09 3:30
mveCPallini18-Sep-09 3:30 
QuestionHow to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 2:37
themilan18-Sep-09 2:37 
AnswerRe: How to use ShellStyle.dll in MFC Application Pin
enhzflep18-Sep-09 5:19
enhzflep18-Sep-09 5:19 
QuestionRe: How to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 20:43
themilan18-Sep-09 20:43 
QuestionAdding 2 double datat types Pin
dipuks18-Sep-09 2:35
dipuks18-Sep-09 2:35 
AnswerRe: Adding 2 double datat types [modified] Pin
Code-o-mat18-Sep-09 2:39
Code-o-mat18-Sep-09 2:39 
GeneralRe: Adding 2 double datat types Pin
dipuks18-Sep-09 3:10
dipuks18-Sep-09 3:10 
GeneralRe: Adding 2 double datat types Pin
Code-o-mat18-Sep-09 3:19
Code-o-mat18-Sep-09 3:19 
This:
dipuks wrote:
double = double1 +- double2;

translates into this:
double = double1 + (-1 * double2);
Thus, it will turn your negative double2 to positive BUT it will also turn positive double2 to negative which is i supose not what you want.

But this:
double = double1 + abs(double2);
will ALWAYS work with a "positive double2".

You could also do this:
double = double1 + ((double2 > 0)?double2:-double2)
or
if (double2 > 0) double = double1 + double2;<br />
else double = double1 + -double2;

or
if (double2 > 0) double = double1 + double2;<br />
else double = double1 - double2;


Or i don't understand what you want to do.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

GeneralRe: Adding 2 double datat types Pin
dipuks18-Sep-09 6:11
dipuks18-Sep-09 6:11 
QuestionRe: Adding 2 double datat types Pin
David Crow18-Sep-09 6:55
David Crow18-Sep-09 6:55 
Questiondownload Netapi32.lib Pin
ranjithgoud18-Sep-09 1:55
ranjithgoud18-Sep-09 1:55 
AnswerRe: download Netapi32.lib Pin
Cedric Moonen18-Sep-09 2:12
Cedric Moonen18-Sep-09 2:12 
GeneralRe: download Netapi32.lib Pin
ranjithgoud18-Sep-09 2:14
ranjithgoud18-Sep-09 2:14 
GeneralRe: download Netapi32.lib Pin
Rajesh R Subramanian18-Sep-09 2:24
professionalRajesh R Subramanian18-Sep-09 2:24 
AnswerRe: download Netapi32.lib Pin
Naveen18-Sep-09 2:23
Naveen18-Sep-09 2:23 
GeneralRe: download Netapi32.lib Pin
Rajesh R Subramanian18-Sep-09 2:27
professionalRajesh R Subramanian18-Sep-09 2:27 
GeneralRe: download Netapi32.lib Pin
Naveen18-Sep-09 2:37
Naveen18-Sep-09 2:37 
GeneralRe: download Netapi32.lib Pin
ranjithgoud18-Sep-09 2:40
ranjithgoud18-Sep-09 2:40 
GeneralRe: download Netapi32.lib Pin
ranjithgoud18-Sep-09 3:14
ranjithgoud18-Sep-09 3:14 
QuestionRe: download Netapi32.lib Pin
David Crow18-Sep-09 6:23
David Crow18-Sep-09 6:23 
Question[Message Deleted] Pin
Game-point18-Sep-09 1:21
Game-point18-Sep-09 1:21 
AnswerRe: how to Read Text from Image file Pin
Cedric Moonen18-Sep-09 1:24
Cedric Moonen18-Sep-09 1:24 
GeneralRe: how to Read Text from Image file Pin
Game-point18-Sep-09 1:27
Game-point18-Sep-09 1:27 
AnswerRe: how to Read Text from Image file Pin
Game-point18-Sep-09 1:53
Game-point18-Sep-09 1:53 
GeneralRe: how to Read Text from Image file PinPopular
Sauce!18-Sep-09 5:42
Sauce!18-Sep-09 5:42 

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.