Click here to Skip to main content
15,907,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CInvalidArg exceptions Pin
Chuck O'Toole30-Jul-12 2:02
Chuck O'Toole30-Jul-12 2:02 
AnswerRe: CInvalidArg exceptions Pin
Eugen Podsypalnikov27-Jul-12 0:37
Eugen Podsypalnikov27-Jul-12 0:37 
QuestionMovies to Galaxy Tab 2-Play movies on Galaxy Tab 2 at Galaxy Tab 2 Column Pin
Member 931218426-Jul-12 15:11
Member 931218426-Jul-12 15:11 
GeneralIs it possible to modify the dialog style at run time? Pin
Falconapollo26-Jul-12 5:12
Falconapollo26-Jul-12 5:12 
GeneralRe: Is it possible to modify the dialog style at run time? Pin
Chris Meech26-Jul-12 6:08
Chris Meech26-Jul-12 6:08 
QuestionLinker Error :C1900 Pin
pix_programmer25-Jul-12 18:59
pix_programmer25-Jul-12 18:59 
AnswerRe: Linker Error :C1900 Pin
Malli_S25-Jul-12 20:25
Malli_S25-Jul-12 20:25 
GeneralRe: Linker Error :C1900 Pin
pix_programmer26-Jul-12 19:59
pix_programmer26-Jul-12 19:59 
GeneralRe: Linker Error :C1900 Pin
Malli_S26-Jul-12 20:15
Malli_S26-Jul-12 20:15 
GeneralCompiler job Pin
_Flaviu25-Jul-12 9:26
_Flaviu25-Jul-12 9:26 
GeneralRe: Compiler job Pin
Maximilien25-Jul-12 9:47
Maximilien25-Jul-12 9:47 
GeneralRe: Compiler job Pin
_Flaviu26-Jul-12 6:22
_Flaviu26-Jul-12 6:22 
QuestionRe: Compiler job Pin
CPallini25-Jul-12 22:16
mveCPallini25-Jul-12 22:16 
GeneralRe: Compiler job Pin
Malli_S25-Jul-12 23:10
Malli_S25-Jul-12 23:10 
AnswerRe: Compiler job Pin
_Flaviu26-Jul-12 1:21
_Flaviu26-Jul-12 1:21 
QuestionIs there a reason you would initialise variables like this? Pin
MarkB77725-Jul-12 1:33
MarkB77725-Jul-12 1:33 
AnswerRe: Is there a reason you would initialise variables like this? PinPopular
_AnsHUMAN_ 25-Jul-12 1:47
_AnsHUMAN_ 25-Jul-12 1:47 
GeneralRe: Is there a reason you would initialise variables like this? Pin
jschell25-Jul-12 6:40
jschell25-Jul-12 6:40 
_AnsHUMAN_ wrote:
Moreover if we don't initialize the variables in the initializers list the compiler will have to do it for us and later on in the constructor this will be initialized again.


I doubt that.

The easiest way for a compiler to provide default values is to do the following
- Request memory block for the object
- Overwrite the entire block with zeros.
- Continue the construction process.

Providing code to set the default value for each member is thus not required.
Any other initialization, beyond the default value, would occur regardless.
GeneralRe: Is there a reason you would initialise variables like this? Pin
Philippe Mori25-Jul-12 10:37
Philippe Mori25-Jul-12 10:37 
GeneralRe: Is there a reason you would initialise variables like this? Pin
jschell27-Jul-12 11:38
jschell27-Jul-12 11:38 
GeneralRe: Is there a reason you would initialise variables like this? Pin
Philippe Mori27-Jul-12 13:08
Philippe Mori27-Jul-12 13:08 
GeneralRe: Is there a reason you would initialise variables like this? Pin
jschell28-Jul-12 6:13
jschell28-Jul-12 6:13 
GeneralRe: Is there a reason you would initialise variables like this? Pin
w-peuker26-Jul-12 21:21
w-peuker26-Jul-12 21:21 
GeneralRe: Is there a reason you would initialise variables like this? Pin
jschell27-Jul-12 11:40
jschell27-Jul-12 11:40 
GeneralRe: Is there a reason you would initialise variables like this? Pin
Philippe Mori27-Jul-12 13:10
Philippe Mori27-Jul-12 13:10 

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.