Click here to Skip to main content
16,004,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: progress bar not working Pin
Richard Jones12-Oct-05 8:03
Richard Jones12-Oct-05 8:03 
Questionmoving DLL to lib Pin
act_x11-Oct-05 12:50
act_x11-Oct-05 12:50 
QuestionIs this code ok? Pin
Mateusz Karbowy11-Oct-05 12:43
Mateusz Karbowy11-Oct-05 12:43 
AnswerRe: Is this code ok? Pin
Maximilien11-Oct-05 13:07
Maximilien11-Oct-05 13:07 
AnswerRe: Is this code ok? Pin
oustar11-Oct-05 15:40
oustar11-Oct-05 15:40 
GeneralRe: Is this code ok? Pin
Maximilien11-Oct-05 16:01
Maximilien11-Oct-05 16:01 
AnswerRe: Is this code ok? Pin
Prakash Nadar11-Oct-05 17:15
Prakash Nadar11-Oct-05 17:15 
AnswerRe: Is this code ok? Pin
Bob Stanneveld11-Oct-05 23:02
Bob Stanneveld11-Oct-05 23:02 
Hello,

Your code is right. The C++ standard allows the modification of temporary objects.

What you do is create a temporary object on the stack (MyClass() creates the temporary). Second you call the MyMethor() function on the temporary. After the statement, the temporary is destroyed and you achieved nothing. In short, your object will be gone after the statement and will be useless. Maybe the compiler even removes the statement..

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
GeneralRe: Is this code ok? Pin
Maximilien12-Oct-05 0:47
Maximilien12-Oct-05 0:47 
GeneralRe: Is this code ok? Pin
Bob Stanneveld12-Oct-05 5:56
Bob Stanneveld12-Oct-05 5:56 
AnswerRe: Is this code ok? Pin
Mateusz Karbowy12-Oct-05 11:22
Mateusz Karbowy12-Oct-05 11:22 
QuestionReplacing http headers with LSP Pin
Tomek.Sergey11-Oct-05 12:37
Tomek.Sergey11-Oct-05 12:37 
QuestionContolling the Font with CDC text methods? Pin
Ian Bowler11-Oct-05 12:02
Ian Bowler11-Oct-05 12:02 
AnswerRe: Contolling the Font with CDC text methods? Pin
Chris Losinger11-Oct-05 14:00
professionalChris Losinger11-Oct-05 14:00 
GeneralRe: Contolling the Font with CDC text methods? Pin
Ian Bowler11-Oct-05 14:01
Ian Bowler11-Oct-05 14:01 
AnswerRe: Contolling the Font with CDC text methods? Pin
Roger Allen12-Oct-05 13:42
Roger Allen12-Oct-05 13:42 
QuestionCFtpConnection::GetFile - error 12003 ? Pin
chenggong11-Oct-05 8:12
chenggong11-Oct-05 8:12 
AnswerRe: CFtpConnection::GetFile - error 12003 ? Pin
RadioOpa11-Oct-05 8:31
RadioOpa11-Oct-05 8:31 
QuestionMFC multiple groups of radio buttons Pin
Axonn Echysttas11-Oct-05 7:37
Axonn Echysttas11-Oct-05 7:37 
AnswerRe: MFC multiple groups of radio buttons Pin
David Crow11-Oct-05 9:02
David Crow11-Oct-05 9:02 
GeneralRe: MFC multiple groups of radio buttons Pin
Axonn Echysttas11-Oct-05 20:00
Axonn Echysttas11-Oct-05 20:00 
QuestionReally Urgent (Function to get the size of a file) Pin
REU11-Oct-05 7:08
REU11-Oct-05 7:08 
AnswerRe: Really Urgent (Function to get the size of a file) Pin
Chris Losinger11-Oct-05 7:18
professionalChris Losinger11-Oct-05 7:18 
GeneralRe: Really Urgent (Function to get the size of a file) Pin
REU11-Oct-05 7:28
REU11-Oct-05 7:28 
GeneralRe: Really Urgent (Function to get the size of a file) Pin
REU11-Oct-05 7:42
REU11-Oct-05 7: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.