Click here to Skip to main content
15,912,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI - PLEASE URGENT Pin
Ryan Binns8-Jul-03 21:52
Ryan Binns8-Jul-03 21:52 
GeneralRe: MDI - PLEASE URGENT Pin
giorgos8-Jul-03 22:12
giorgos8-Jul-03 22:12 
GeneralRe: MDI - PLEASE URGENT Pin
Ryan Binns8-Jul-03 22:15
Ryan Binns8-Jul-03 22:15 
GeneralRe: MDI - PLEASE URGENT Pin
giorgos8-Jul-03 22:23
giorgos8-Jul-03 22:23 
GeneralRe: MDI - PLEASE URGENT Pin
Ryan Binns8-Jul-03 22:27
Ryan Binns8-Jul-03 22:27 
GeneralABS( ) Pin
DaveE9th8-Jul-03 20:49
DaveE9th8-Jul-03 20:49 
GeneralRe: ABS( ) Pin
Ryan Binns8-Jul-03 20:54
Ryan Binns8-Jul-03 20:54 
GeneralRe: ABS( ) Pin
peterchen9-Jul-03 1:59
peterchen9-Jul-03 1:59 
do what? Using this macro, or using ABS?

a) using a macro: for C sources that don't know of templates, this was the only way to define abs once, without having to redefine it for every type you possibly need.

b) calculating ABS:
one is float comparison, due to round off errors, should usually be done with an eps, e.g. fabs(b-a) < eps. If you have an array of samples (both positive and negative), and you want to normalize them (so they fit e.g. into a (-1, +1) range), you need to find the highest absolute value in the samples.
reasons are many...







"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS

sighist | Agile Programming | doxygen

GeneralRe: ABS( ) Pin
DaveE9th9-Jul-03 4:01
DaveE9th9-Jul-03 4:01 
QuestionHow to store a numeric value to *.mdb table from edit box Pin
Emre Zorlu8-Jul-03 20:14
Emre Zorlu8-Jul-03 20:14 
AnswerRe: How to store a numeric value to *.mdb table from edit box Pin
Toni788-Jul-03 20:25
Toni788-Jul-03 20:25 
AnswerRe: How to store a numeric value to *.mdb table from edit box Pin
Terry O'Nolley10-Jul-03 8:18
Terry O'Nolley10-Jul-03 8:18 
QuestionHow to support axtivex control in my mfc regular dll Pin
gucy8-Jul-03 19:47
gucy8-Jul-03 19:47 
AnswerRe: How to support axtivex control in my mfc regular dll Pin
gucy8-Jul-03 20:46
gucy8-Jul-03 20:46 
GeneralAdding toolbar to a SDK in VC++ Pin
madhu_nal8-Jul-03 19:42
madhu_nal8-Jul-03 19:42 
GeneralPlease see why it happened Pin
Anonymous8-Jul-03 19:35
Anonymous8-Jul-03 19:35 
GeneralRe: Please see why it happened Pin
Cedric Moonen8-Jul-03 20:12
Cedric Moonen8-Jul-03 20:12 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 20:37
Ryan Binns8-Jul-03 20:37 
GeneralRe: Please see why it happened Pin
Cedric Moonen8-Jul-03 21:01
Cedric Moonen8-Jul-03 21:01 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 20:38
Ryan Binns8-Jul-03 20:38 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 20:47
Toni788-Jul-03 20:47 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 20:51
Ryan Binns8-Jul-03 20:51 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 21:03
Toni788-Jul-03 21:03 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 21:07
Ryan Binns8-Jul-03 21:07 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 21:16
Toni788-Jul-03 21:16 

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.