Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralError ... Pin
12-Jul-01 2:33
suss12-Jul-01 2:33 
GeneralRe: Error ... Pin
Tomasz Sowinski12-Jul-01 2:42
Tomasz Sowinski12-Jul-01 2:42 
GeneralRe: Error ... Pin
12-Jul-01 3:16
suss12-Jul-01 3:16 
GeneralRe: Error ... Pin
Tomasz Sowinski12-Jul-01 3:31
Tomasz Sowinski12-Jul-01 3:31 
GeneralMemory monitoring Pin
Geetha11-Jul-01 22:38
Geetha11-Jul-01 22:38 
GeneralRe: Memory monitoring Pin
Tomasz Sowinski12-Jul-01 1:25
Tomasz Sowinski12-Jul-01 1:25 
GeneralUsing of one object in three dialog ... Pin
Hadi Rezaee11-Jul-01 22:37
Hadi Rezaee11-Jul-01 22:37 
GeneralRe: Using of one object in three dialog ... Pin
Tomasz Sowinski12-Jul-01 1:07
Tomasz Sowinski12-Jul-01 1:07 
Make your CDaoDatabase an application data member and provide an accessor function in your app class...
class CYourApp : public CWinApp
{
// ...
public:
CDaoDatabase& GetDatabase() { return m_db; }
private:
CDaoDatabase m_db;
// ...
};


... and use AfxGetApp in your dialogs to get access to db:
// ... somewhere in dialog methods
CDaoDatabase &db = static_cast<CYourApp *>(AfxGetApp())->GetDatabase();


Tomasz Sowinski -- http://www.shooltz.com
GeneralRe: Using of one object in three dialog ... Pin
Hadi Rezaee12-Jul-01 2:15
Hadi Rezaee12-Jul-01 2:15 
GeneralRe: Using of one object in three dialog ... Pin
Tomasz Sowinski12-Jul-01 2:36
Tomasz Sowinski12-Jul-01 2:36 
GeneralRe: Using of one object in three dialog ... Pin
Hadi Rezaee12-Jul-01 4:18
Hadi Rezaee12-Jul-01 4:18 
GeneralRe: Using of one object in three dialog ... Pin
Tomasz Sowinski12-Jul-01 4:24
Tomasz Sowinski12-Jul-01 4:24 
GeneralRe: Using of one object in three dialog ... Pin
Stan Shannon12-Jul-01 4:59
Stan Shannon12-Jul-01 4:59 
GeneralRe: Using of one object in three dialog ... Pin
Tomasz Sowinski12-Jul-01 7:00
Tomasz Sowinski12-Jul-01 7:00 
GeneralRe: Using of one object in three dialog ... Pin
Hadi Rezaee13-Jul-01 18:26
Hadi Rezaee13-Jul-01 18:26 
GeneralRe: Using of one object in three dialog ... Pin
CMFC6.0VS.NETUser12-Jul-01 4:48
CMFC6.0VS.NETUser12-Jul-01 4:48 
GeneralRe: Using of one object in three dialog ... Pin
Stan Shannon12-Jul-01 5:49
Stan Shannon12-Jul-01 5:49 
GeneralRe: Using of one object in three dialog ... Pin
Hadi Rezaee13-Jul-01 18:19
Hadi Rezaee13-Jul-01 18:19 
GeneralRe: Using of one object in three dialog ... Pin
Hadi Rezaee14-Jul-01 1:49
Hadi Rezaee14-Jul-01 1:49 
GeneralRe: Using of one object in three dialog ... Pin
Stan Shannon14-Jul-01 3:38
Stan Shannon14-Jul-01 3:38 
GeneralCImageList containing variable width images Pin
ov11-Jul-01 22:34
ov11-Jul-01 22:34 
GeneralRe: CImageList containing variable width images Pin
12-Jul-01 1:57
suss12-Jul-01 1:57 
Questionprovider for access? Pin
Gérald Mercet11-Jul-01 22:31
Gérald Mercet11-Jul-01 22:31 
AnswerRe: provider for access? Pin
Anders Molin12-Jul-01 1:24
professionalAnders Molin12-Jul-01 1:24 
Generalsmall problem(so I hope) with a small spin . Please help !!! Pin
11-Jul-01 22:13
suss11-Jul-01 22:13 

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.