Click here to Skip to main content
13,288,520 members (56,844 online)

C / C++ / MFC

 
Questionit's my first useful code.. and there's error that i can't understan :( Pin
eng.immortal15-Jan-13 19:20
membereng.immortal15-Jan-13 19:20 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
Flaviu215-Jan-13 20:37
memberFlaviu215-Jan-13 20:37 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
«_Superman_»15-Jan-13 23:06
member«_Superman_»15-Jan-13 23:06 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
DavidCrow16-Jan-13 6:52
memberDavidCrow16-Jan-13 6:52 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
Dean M. Sands, III17-Jan-13 4:11
memberDean M. Sands, III17-Jan-13 4:11 
QuestionDoes anyone know this c plus plus knowledge? Pin
yu-jian15-Jan-13 6:16
groupyu-jian15-Jan-13 6:16 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
Richard MacCutchan15-Jan-13 7:33
mvpRichard MacCutchan15-Jan-13 7:33 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
CPallini15-Jan-13 12:30
mvpCPallini15-Jan-13 12:30 
That code creates (and destroys) a temporary CTempLock object. The net effect is the call of the class constructor and destructor. Try the following code:
#include <iostream>
using std::cout;
using std::endl;
 
class A
{
public:
    A(){cout << "ctor" << endl;}
    ~A(){cout << "dtor" << endl;}
};
 
int main()
{
    A();
}

Veni, vidi, vici.

GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 4:17
groupyu-jian16-Jan-13 4:17 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
CPallini16-Jan-13 5:04
mvpCPallini16-Jan-13 5:04 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 18:44
groupyu-jian16-Jan-13 18:44 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
jschell16-Jan-13 10:10
memberjschell16-Jan-13 10:10 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
JackDingler16-Jan-13 12:19
memberJackDingler16-Jan-13 12:19 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 18:50
groupyu-jian16-Jan-13 18:50 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
JackDingler17-Jan-13 6:15
memberJackDingler17-Jan-13 6:15 
QuestionCDC Problem with coordinates Pin
Argonia14-Jan-13 2:50
memberArgonia14-Jan-13 2:50 
AnswerRe: CDC Problem with coordinates Pin
Argonia14-Jan-13 22:39
memberArgonia14-Jan-13 22:39 
GeneralRe: CDC Problem with coordinates Pin
Vaclav_Sal15-Jan-13 10:53
memberVaclav_Sal15-Jan-13 10:53 
GeneralRe: CDC Problem with coordinates Pin
Argonia15-Jan-13 22:23
memberArgonia15-Jan-13 22:23 
QuestionSOLVED From HANDLE to BITMAPINFO - another basic question for gurus Pin
Vaclav_Sal13-Jan-13 6:30
memberVaclav_Sal13-Jan-13 6:30 
AnswerRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Richard MacCutchan13-Jan-13 6:44
mvpRichard MacCutchan13-Jan-13 6:44 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Vaclav_Sal13-Jan-13 7:08
memberVaclav_Sal13-Jan-13 7:08 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Richard MacCutchan13-Jan-13 7:32
mvpRichard MacCutchan13-Jan-13 7:32 
QuestionHow to get detail error info from E_FAIL? Pin
Falconapollo11-Jan-13 22:23
memberFalconapollo11-Jan-13 22:23 
AnswerRe: How to get detail error info from E_FAIL? Pin
«_Superman_»12-Jan-13 0:43
member«_Superman_»12-Jan-13 0:43 

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.


Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 11 Dec 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid