Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ .NET Release Debug Question... Pin
Joaquín M López Muñoz22-Feb-02 3:45
Joaquín M López Muñoz22-Feb-02 3:45 
GeneralRe: VC++ .NET Release Debug Question... Pin
JoeSox22-Feb-02 4:27
JoeSox22-Feb-02 4:27 
GeneralRe: VC++ .NET Release Debug Question... Pin
Tim Smith22-Feb-02 6:23
Tim Smith22-Feb-02 6:23 
GeneralRe: VC++ .NET Release Debug Question... Pin
JoeSox22-Feb-02 6:30
JoeSox22-Feb-02 6:30 
GeneralRe: VC++ .NET Release Debug Question... Pin
Tim Smith22-Feb-02 6:48
Tim Smith22-Feb-02 6:48 
GeneralRe: VC++ .NET Release Debug Question... Pin
JoeSox22-Feb-02 6:55
JoeSox22-Feb-02 6:55 
Generalwork with database in disconnect mode Pin
Mazdak22-Feb-02 3:21
Mazdak22-Feb-02 3:21 
GeneralHelp with CFormView (derriving question)!!! Pin
LukeV22-Feb-02 3:05
LukeV22-Feb-02 3:05 
Hi,

I have many forms that would share many stuff (function, variables) and I'd like to create sort of a template class with CFormView, so that my forms could derrive from CFrmTmpl instead of CFormView. Here's some code:

class CFrmTmpl : public CFormView
{
protected:
CFrmTmpl(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CFrmTmpl)

// Form Data
public:
//{{AFX_DATA(CFrmTmpl)
enum { IDD = _UNKNOWN_RESOURCE_ID_ };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA

**************

class CFrm1 : public CFrmTmpl
{
protected:
CFrm1(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CFrm1)

// Form Data
public:
//{{AFX_DATA(CFrm1)
enum { IDD = IDD_DIALOG1 };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA

also:

CFrmTmpl::CFrmTmpl()
: CFormView(CFrmTmpl::IDD)
{

********************

CFrm1::CFrm1()
: CFrm1(CFrm1::IDD) // I know this does not work, that's the prob!
{


The problem that I have is the IDD and the constructor. Seems like the CFormView absolutely needs an IDD. Is there a way to make this work?

Thanks!


---------------
http://www.edovia.com
GeneralRe: Help with CFormView (derriving question)!!! Pin
LukeV22-Feb-02 3:31
LukeV22-Feb-02 3:31 
GeneralRe: Help with CFormView (derriving question)!!! Pin
LukeV22-Feb-02 3:31
LukeV22-Feb-02 3:31 
GeneralRe: Help with CFormView (derriving question)!!! Pin
Joaquín M López Muñoz22-Feb-02 3:30
Joaquín M López Muñoz22-Feb-02 3:30 
QuestionFile update notify? Pin
22-Feb-02 3:01
suss22-Feb-02 3:01 
AnswerRe: File update notify? Pin
Mike Nordell22-Feb-02 3:30
Mike Nordell22-Feb-02 3:30 
GeneralCD-RW label Pin
Igor Kondrasovas22-Feb-02 2:41
professionalIgor Kondrasovas22-Feb-02 2:41 
GeneralRe: CD-RW label Pin
Mike Nordell22-Feb-02 3:52
Mike Nordell22-Feb-02 3:52 
QuestionVC++ 6.0 Add-In for CLW files? Pin
Uwe Keim22-Feb-02 1:35
sitebuilderUwe Keim22-Feb-02 1:35 
GeneralSMTP & CAsyncSocket Pin
Jon Hulatt22-Feb-02 0:19
Jon Hulatt22-Feb-02 0:19 
GeneralRe: SMTP & CAsyncSocket Pin
Joaquín M López Muñoz22-Feb-02 1:08
Joaquín M López Muñoz22-Feb-02 1:08 
GeneralRe: SMTP & CAsyncSocket Pin
Jon Hulatt22-Feb-02 3:16
Jon Hulatt22-Feb-02 3:16 
QuestionCan anyone help me with this syntax error. Pin
John Cruz21-Feb-02 23:59
John Cruz21-Feb-02 23:59 
AnswerRe: Can anyone help me with this syntax error. Pin
22-Feb-02 0:09
suss22-Feb-02 0:09 
AnswerRe: Can anyone help me with this syntax error. Pin
Bruce Duncan22-Feb-02 4:39
Bruce Duncan22-Feb-02 4:39 
GeneralRe: Can anyone help me with this syntax error. Pin
John Cruz22-Feb-02 9:24
John Cruz22-Feb-02 9:24 
GeneralRe: Can anyone help me with this syntax error. Pin
Carlos Antollini22-Feb-02 9:38
Carlos Antollini22-Feb-02 9:38 
GeneralToolBar Button Pin
Ralfy21-Feb-02 23:28
Ralfy21-Feb-02 23:28 

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.