Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEM_SETSEL -- Edit Control Messages Pin
c121hains26-Jun-05 16:28
c121hains26-Jun-05 16:28 
GeneralEdit and Rich Edit TEXT BOX Pin
c121hains27-Jun-05 20:32
c121hains27-Jun-05 20:32 
GeneralInitializeCriticalSection and LeaveCriticalSection Pin
yccheok26-Jun-05 15:21
yccheok26-Jun-05 15:21 
GeneralRe: InitializeCriticalSection and LeaveCriticalSection Pin
valikac26-Jun-05 16:38
valikac26-Jun-05 16:38 
GeneralRe: InitializeCriticalSection and LeaveCriticalSection Pin
Jose Lamas Rios26-Jun-05 17:34
Jose Lamas Rios26-Jun-05 17:34 
GeneralRe: InitializeCriticalSection and LeaveCriticalSection Pin
ThatsAlok26-Jun-05 19:06
ThatsAlok26-Jun-05 19:06 
GeneralNamespace extension Pin
Gurra_Koo26-Jun-05 14:45
Gurra_Koo26-Jun-05 14:45 
GeneralHELP: unfamiliar C++ syntax Pin
kevingpo26-Jun-05 14:12
kevingpo26-Jun-05 14:12 
I am trying to analyse this piece of C++ code below. It is an example code from qwt.sf.net which is an extension to QT graphics library.

I assume line 03 is calling a constructor? I have never seen it written this way. Is this a new syntax in C++? Same again in line 12. Are QApplication & QString constructors? While a & info are the references to the new constructed objects? And wtf is going on in line 14? Please can someone explain what is going on.... :S

[code]
01. int main(int argc, char **argv)
02. {
03. QApplication a(argc, argv);
04.
05. QVBox vBox;
06. vBox.setCaption("Cpu Plot");
07.
08. CpuPlot *plot = new CpuPlot(&vBox);
09. plot->setTitle("History");
10. plot->setMargin(5);
11.
12. QString info("Press the legend to en/disable a curve");
13.
14. (void)new QLabel(info, &vBox);
15. a.setMainWidget(&vBox);
16.
17. vBox.resize(500,300);
18. vBox.show();
19.
20. return a.exec();
21. }
[/code]


PS: If you are interested in seeing more, download qwt.sf.net
GeneralRe: HELP: unfamiliar C++ syntax Pin
kevingpo26-Jun-05 14:35
kevingpo26-Jun-05 14:35 
GeneralRe: HELP: unfamiliar C++ syntax Pin
Nemanja Trifunovic26-Jun-05 15:08
Nemanja Trifunovic26-Jun-05 15:08 
GeneralRe: HELP: unfamiliar C++ syntax Pin
Nemanja Trifunovic26-Jun-05 15:05
Nemanja Trifunovic26-Jun-05 15:05 
GeneralRe: HELP: unfamiliar C++ syntax Pin
toxcct26-Jun-05 21:01
toxcct26-Jun-05 21:01 
Generalsorry for a non-c++ quwstion: PDF format Pin
includeh1026-Jun-05 12:55
includeh1026-Jun-05 12:55 
GeneralRe: sorry for a non-c++ quwstion: PDF format Pin
Christian Graus26-Jun-05 16:03
protectorChristian Graus26-Jun-05 16:03 
GeneralRe: sorry for a non-c++ quwstion: PDF format Pin
Steve Mayfield26-Jun-05 16:30
Steve Mayfield26-Jun-05 16:30 
GeneralRe: sorry for a non-c++ quwstion: PDF format Pin
Steve Mayfield26-Jun-05 16:18
Steve Mayfield26-Jun-05 16:18 
Generalautocomplete members in class context Pin
bruce2g26-Jun-05 11:44
bruce2g26-Jun-05 11:44 
GeneralRe: autocomplete members in class context Pin
Jörgen Sigvardsson26-Jun-05 11:56
Jörgen Sigvardsson26-Jun-05 11:56 
QuestionOnTimer?? Pin
Larsson26-Jun-05 11:11
Larsson26-Jun-05 11:11 
Questionneed a multimedia library!? Pin
ThinkingPrometheus26-Jun-05 10:34
ThinkingPrometheus26-Jun-05 10:34 
AnswerRe: need a multimedia library!? Pin
Christian Graus26-Jun-05 16:03
protectorChristian Graus26-Jun-05 16:03 
Questionhow to get control of flash formular? Pin
Anonymous26-Jun-05 10:23
Anonymous26-Jun-05 10:23 
GeneralHELP: cpu load graph plotting program Pin
kevingpo26-Jun-05 7:52
kevingpo26-Jun-05 7:52 
GeneralRe: HELP: cpu load graph plotting program Pin
Ravi Bhavnani26-Jun-05 8:45
professionalRavi Bhavnani26-Jun-05 8:45 
GeneralRe: HELP: cpu load graph plotting program Pin
Anonymous26-Jun-05 10:19
Anonymous26-Jun-05 10:19 

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.