Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem in using FindFirstFile Pin
samhita4-Nov-03 18:02
samhita4-Nov-03 18:02 
GeneralRe: Problem in using FindFirstFile Pin
georgiek504-Nov-03 19:36
georgiek504-Nov-03 19:36 
GeneralHide/Show an Image Pin
Jackson Antony4-Nov-03 17:52
Jackson Antony4-Nov-03 17:52 
GeneralRe: Hide/Show an Image Pin
Joe Woodbury4-Nov-03 18:05
professionalJoe Woodbury4-Nov-03 18:05 
QuestionHow to print contents of CFrameWnd Pin
AJJU&GULLU4-Nov-03 17:51
sussAJJU&GULLU4-Nov-03 17:51 
GeneralC++ Question. Pin
WREY4-Nov-03 16:31
WREY4-Nov-03 16:31 
GeneralRe: C++ Question. Pin
Michael Dunn4-Nov-03 17:17
sitebuilderMichael Dunn4-Nov-03 17:17 
GeneralRe: C++ Question. Pin
Abhishek Srivastava4-Nov-03 17:35
Abhishek Srivastava4-Nov-03 17:35 
Hi these few paragraphs from MSDN may help u to understnad the diff,


While the Standard gives static_cast a sweeping general property plus a complicated set of exceptions, it limits reinterpret_cast to two fundamental roles:

Conversions to and from pointers


Overlaying an lvalue with multiple types (a.k.a. type punning)
As its name suggests, this style of cast reinterprets its operand's representation as having the target type. This reinterpretation involves no calls to conversion constructors or conversion operators; indeed, a reinterpret_cast may leave the operand's bit pattern intact, so that the conversion is purely a compile-time act with no run-time consequences.



If you reinterpret a bit pattern, and a pointer is involved, use reinterpret_cast.


If you engage in type punning, use reinterpret_cast.


For all other conversions, use static_cast.

General Run-Time Behavior
reinterpret_cast traffics only in integers, enumerations, pointers, and references. It doesn't call user-defined functions, and probably doesn't call into the run-time library. At worst, a pointer conversion might require a few machine instructions to widen or narrow its operand. (While a compiler may package these conversions in library routines, I don't know of a compiler that actually does so.)

In contrast, static_cast converts among all of the above as well as floating-point and class types.
Smile | :)
Hope I Cool | :cool: pasted the right matter from the MSDN ,u were looking which for Smile | :)


Abhishek Srivastava
Software Engg (VC++)
India ,Noida
Mobile no 9891492921 Smile | :)
GeneralTree control property sheets Pin
dogan4-Nov-03 14:53
dogan4-Nov-03 14:53 
GeneralRe: Tree control property sheets Pin
[ Jûroehn ]4-Nov-03 16:15
[ Jûroehn ]4-Nov-03 16:15 
GeneralXP Themes and DLLs Pin
LukeV4-Nov-03 12:57
LukeV4-Nov-03 12:57 
QuestionHow to dynamically add objects to TTabControl?! Pin
[ Jûroehn ]4-Nov-03 12:43
[ Jûroehn ]4-Nov-03 12:43 
AnswerRe: How to dynamically add objects to TTabControl?! Pin
[ Jûroehn ]4-Nov-03 18:23
[ Jûroehn ]4-Nov-03 18:23 
GeneralHelp with file size.. Pin
Snyp4-Nov-03 12:38
Snyp4-Nov-03 12:38 
GeneralRe: Help with file size.. Pin
Joe Woodbury4-Nov-03 15:04
professionalJoe Woodbury4-Nov-03 15:04 
GeneralRe: Help with file size.. Pin
Snyp4-Nov-03 15:35
Snyp4-Nov-03 15:35 
GeneralRe: Help with file size.. Pin
Joe Woodbury4-Nov-03 17:35
professionalJoe Woodbury4-Nov-03 17:35 
GeneralWizard 97 problem Pin
Joe Woodbury4-Nov-03 12:33
professionalJoe Woodbury4-Nov-03 12:33 
GeneralRe: Wizard 97 problem Pin
Joe Woodbury4-Nov-03 12:50
professionalJoe Woodbury4-Nov-03 12:50 
GeneralThreads and sockets Pin
michael_cowan4-Nov-03 12:08
michael_cowan4-Nov-03 12:08 
GeneralRe: Threads and sockets Pin
valikac5-Nov-03 6:16
valikac5-Nov-03 6:16 
GeneralRe: Threads and sockets Pin
michael_cowan5-Nov-03 9:54
michael_cowan5-Nov-03 9:54 
GeneralGetClientRect...whats wrong?! Pin
Schniddel4-Nov-03 10:15
Schniddel4-Nov-03 10:15 
GeneralRe: GetClientRect...whats wrong?! Pin
JDasari6-Nov-03 7:54
JDasari6-Nov-03 7:54 
GeneralMySQL 3.51 driver and MSVC wizards Pin
Antti Keskinen4-Nov-03 9:58
Antti Keskinen4-Nov-03 9:58 

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.