Click here to Skip to main content
16,014,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: regsvr32 failed Pin
devvvy27-Nov-02 22:58
devvvy27-Nov-02 22:58 
GeneralWhy ole automation error!!! Pin
pnpfriend27-Nov-02 10:24
pnpfriend27-Nov-02 10:24 
GeneralRe: Why ole automation error!!! Pin
Le centriste27-Nov-02 11:57
Le centriste27-Nov-02 11:57 
GeneralRe: Why ole automation error!!! Pin
pnpfriend1-Dec-02 5:40
pnpfriend1-Dec-02 5:40 
GeneralUtility Projects Pin
Anonymous27-Nov-02 10:07
Anonymous27-Nov-02 10:07 
Generaldoc/view architecture question.. Pin
trustno127-Nov-02 9:35
trustno127-Nov-02 9:35 
GeneralRe: doc/view architecture question.. Pin
Michael P Butler27-Nov-02 9:53
Michael P Butler27-Nov-02 9:53 
GeneralRe: doc/view architecture question.. Pin
Alvaro Mendez27-Nov-02 9:55
Alvaro Mendez27-Nov-02 9:55 
I suppose there are two ways:

1. Add a member "m_db" to your dialog's class and set it when you construct the object, right before calling DoModal.

2. Use the global CWinApp to get the document object and then m_db from there. I don't recommed it, but the code would look something like this:

CDocTemplate* pDocTemplate = AfxGetApp()->GetNextDocTemplate(AfxGetApp()->GetFirstDocTemplatePosition());
CYourDocument* pDoc = (CYourDocument*)pDocTemplate->GetNextDoc(pDocTemplate->GetFirstDocPosition());
 
// use pDoc->m_db from here

Regards,
Alvaro


Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
GeneralVC++ 6, having trouble with MS Messenger Header and Lib Pin
Fahr27-Nov-02 9:12
Fahr27-Nov-02 9:12 
GeneralRe: VC++ 6, having trouble with MS Messenger Header and Lib Pin
Michael P Butler27-Nov-02 9:34
Michael P Butler27-Nov-02 9:34 
GeneralRe: VC++ 6, having trouble with MS Messenger Header and Lib Pin
Fahr27-Nov-02 9:36
Fahr27-Nov-02 9:36 
GeneralRe: VC++ 6, having trouble with MS Messenger Header and Lib Pin
Michael P Butler27-Nov-02 9:51
Michael P Butler27-Nov-02 9:51 
GeneralRe: VC++ 6, having trouble with MS Messenger Header and Lib Pin
Fahr27-Nov-02 10:21
Fahr27-Nov-02 10:21 
GeneralRe: VC++ 6, having trouble with MS Messenger Header and Lib Pin
Michael P Butler27-Nov-02 10:37
Michael P Butler27-Nov-02 10:37 
GeneralRe: VC++ 6, having trouble with MS Messenger Header and Lib Pin
Fahr27-Nov-02 10:44
Fahr27-Nov-02 10:44 
GeneralRe: VC++ 6, having trouble with MS Messenger Header and Lib Pin
Michael P Butler27-Nov-02 11:00
Michael P Butler27-Nov-02 11:00 
GeneralRe: VC++ 6, having trouble with MS Messenger Header and Lib Pin
Fahr27-Nov-02 11:02
Fahr27-Nov-02 11:02 
QuestionOwnerdraw listbox +WS_POPUP ??? Pin
CAE27-Nov-02 9:04
CAE27-Nov-02 9:04 
GeneralCDocument saving ! Pin
act_x27-Nov-02 7:52
act_x27-Nov-02 7:52 
GeneralProblem with Adding a vector to my program Pin
Jeff Patterson27-Nov-02 7:47
Jeff Patterson27-Nov-02 7:47 
GeneralRe: Problem with Adding a vector to my program Pin
Chris Losinger27-Nov-02 7:58
professionalChris Losinger27-Nov-02 7:58 
GeneralRe: Problem with Adding a vector to my program Pin
Jeff Patterson27-Nov-02 8:03
Jeff Patterson27-Nov-02 8:03 
GeneralRe: Problem with Adding a vector to my program Pin
Jeff Patterson27-Nov-02 8:04
Jeff Patterson27-Nov-02 8:04 
GeneralRe: Problem with Adding a vector to my program Pin
Chris Losinger27-Nov-02 8:05
professionalChris Losinger27-Nov-02 8:05 
GeneralRe: Problem with Adding a vector to my program Pin
Daniel Turini27-Nov-02 8:16
Daniel Turini27-Nov-02 8:16 

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.