Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template design question Pin
pankajdaga10-Dec-03 12:52
pankajdaga10-Dec-03 12:52 
QuestionHyperthreading Windows API? Pin
solla10-Dec-03 6:03
solla10-Dec-03 6:03 
AnswerRe: Hyperthreading Windows API? Pin
valikac10-Dec-03 6:20
valikac10-Dec-03 6:20 
GeneralRe: Hyperthreading Windows API? Pin
solla10-Dec-03 6:24
solla10-Dec-03 6:24 
GeneralRe: Hyperthreading Windows API? Pin
David Crow10-Dec-03 8:50
David Crow10-Dec-03 8:50 
GeneralRe: Hyperthreading Windows API? Pin
solla11-Dec-03 1:43
solla11-Dec-03 1:43 
GeneralCreating and Using Static lib Pin
Anonymous10-Dec-03 5:31
Anonymous10-Dec-03 5:31 
GeneralRe: Creating and Using Static lib Pin
Larry J. Siddens10-Dec-03 6:00
Larry J. Siddens10-Dec-03 6:00 
GeneralRe: Creating and Using Static lib Pin
Chris Meech10-Dec-03 6:07
Chris Meech10-Dec-03 6:07 
GeneralMultithreading using _beginthread Pin
madmurdz10-Dec-03 4:54
madmurdz10-Dec-03 4:54 
GeneralRe: Multithreading using _beginthread Pin
Alexander M.,10-Dec-03 5:16
Alexander M.,10-Dec-03 5:16 
GeneralRe: Multithreading using _beginthread Pin
John M. Drescher10-Dec-03 5:38
John M. Drescher10-Dec-03 5:38 
GeneralRe: Multithreading using _beginthread Pin
valikac10-Dec-03 6:22
valikac10-Dec-03 6:22 
GeneralRe: Multithreading using _beginthread Pin
Jörgen Sigvardsson10-Dec-03 8:17
Jörgen Sigvardsson10-Dec-03 8:17 
GeneralRe: Multithreading using _beginthread Pin
Gary R. Wheeler10-Dec-03 15:11
Gary R. Wheeler10-Dec-03 15:11 
GeneralRe: Multithreading using _beginthread Pin
David Crow11-Dec-03 2:31
David Crow11-Dec-03 2:31 
GeneralRe: Multithreading using _beginthread Pin
Gary R. Wheeler11-Dec-03 10:21
Gary R. Wheeler11-Dec-03 10:21 
GeneralRe: Multithreading using _beginthread Pin
David Crow11-Dec-03 10:24
David Crow11-Dec-03 10:24 
General(int() function vs (int) cast - comments please Pin
FearlessBurner10-Dec-03 4:48
FearlessBurner10-Dec-03 4:48 
Sometimes, it is necessary to change a floating point number to an integer. The usual way of doing this is just to write

i = (int)f;

However, the C++ compiler also lets one express this desire like this:

i = int( f );

which is how functions are normally written, and it is easier to understand in complicated expressions rather than casts. Similar expressions can be produced with other implicit types eg double and float eg

dbl = double( i );

Does anyone know when it became possible to write the code like this, as opposed to using casts?
Does anyone know if there are any drawbacks or using this approach?

All comments are welcomeSmile | :)
GeneralRe: (int() function vs (int) cast - comments please Pin
Alexander M.,10-Dec-03 5:25
Alexander M.,10-Dec-03 5:25 
GeneralRe: (int() function vs (int) cast - comments please Pin
Ian Darling10-Dec-03 5:27
Ian Darling10-Dec-03 5:27 
GeneralScrollbar in listctrl Pin
super10-Dec-03 3:35
professionalsuper10-Dec-03 3:35 
GeneralRe: Scrollbar in listctrl Pin
David Crow10-Dec-03 7:56
David Crow10-Dec-03 7:56 
GeneralLoadImage returns handle instead of NULL Pin
mexicanchili10-Dec-03 3:27
mexicanchili10-Dec-03 3:27 
GeneralRe: LoadImage returns handle instead of NULL Pin
Alexander M.,10-Dec-03 5:18
Alexander M.,10-Dec-03 5:18 

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.