Click here to Skip to main content
15,849,262 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DISP_E_UNKNOWNNAME Pin
CPallini18-Sep-09 4:30
mveCPallini18-Sep-09 4:30 
QuestionHow to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 3:37
themilan18-Sep-09 3:37 
AnswerRe: How to use ShellStyle.dll in MFC Application Pin
enhzflep18-Sep-09 6:19
enhzflep18-Sep-09 6:19 
QuestionRe: How to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 21:43
themilan18-Sep-09 21:43 
QuestionAdding 2 double datat types Pin
dipuks18-Sep-09 3:35
dipuks18-Sep-09 3:35 
AnswerRe: Adding 2 double datat types [modified] Pin
Code-o-mat18-Sep-09 3:39
Code-o-mat18-Sep-09 3:39 
GeneralRe: Adding 2 double datat types Pin
dipuks18-Sep-09 4:10
dipuks18-Sep-09 4:10 
GeneralRe: Adding 2 double datat types Pin
Code-o-mat18-Sep-09 4:19
Code-o-mat18-Sep-09 4: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 7:11
dipuks18-Sep-09 7:11 
QuestionRe: Adding 2 double datat types Pin
David Crow18-Sep-09 7:55
David Crow18-Sep-09 7:55 
Questiondownload Netapi32.lib Pin
ranjithgoud18-Sep-09 2:55
ranjithgoud18-Sep-09 2:55 
AnswerRe: download Netapi32.lib Pin
Cedric Moonen18-Sep-09 3:12
Cedric Moonen18-Sep-09 3:12 
GeneralRe: download Netapi32.lib Pin
ranjithgoud18-Sep-09 3:14
ranjithgoud18-Sep-09 3:14 
GeneralRe: download Netapi32.lib Pin
Rajesh R Subramanian18-Sep-09 3:24
professionalRajesh R Subramanian18-Sep-09 3:24 
AnswerRe: download Netapi32.lib Pin
Naveen18-Sep-09 3:23
Naveen18-Sep-09 3:23 
GeneralRe: download Netapi32.lib Pin
Rajesh R Subramanian18-Sep-09 3:27
professionalRajesh R Subramanian18-Sep-09 3:27 
GeneralRe: download Netapi32.lib Pin
Naveen18-Sep-09 3:37
Naveen18-Sep-09 3:37 
GeneralRe: download Netapi32.lib Pin
ranjithgoud18-Sep-09 3:40
ranjithgoud18-Sep-09 3:40 
GeneralRe: download Netapi32.lib Pin
ranjithgoud18-Sep-09 4:14
ranjithgoud18-Sep-09 4:14 
QuestionRe: download Netapi32.lib Pin
David Crow18-Sep-09 7:23
David Crow18-Sep-09 7:23 
Question[Message Deleted] Pin
Game-point18-Sep-09 2:21
Game-point18-Sep-09 2:21 
AnswerRe: how to Read Text from Image file Pin
Cedric Moonen18-Sep-09 2:24
Cedric Moonen18-Sep-09 2:24 
GeneralRe: how to Read Text from Image file Pin
Game-point18-Sep-09 2:27
Game-point18-Sep-09 2:27 
AnswerRe: how to Read Text from Image file Pin
Game-point18-Sep-09 2:53
Game-point18-Sep-09 2:53 
GeneralRe: how to Read Text from Image file Pin
Sauce!18-Sep-09 6:42
Sauce!18-Sep-09 6: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.