summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_activeqt-dumpcpp.qdoc
blob: df1d5425a5b1758fa75bdd6849422f202f2eb27a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! [0]
Outlook::Application *outlook = new Outlook::Application;
//! [0]


//! [1]
Outlook::_NameSpace *session = outlook->Session();
//! [1]


//! [2]
Outlook::NameSpace *session = outlook->Session();
//! [2]


//! [3]
Outlook::_NameSpace *tmp = outlook->Session();
Outlook::NameSpace *session = new Outlook::NameSpace(tmp);
delete tmp; // or any other use of tmp: segfault
//! [3]


//! [4]
Outlook::NameSpace *session = new Outlook::NameSpace(outlook->Session()); 
//! [4]