CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    Philippines
    Posts
    58

    Calling CDialog class from my Own class

    good day once again! i created a raw class and would like to call a class which is derived from CDialog class. i got these problem "syntax error : missing ';' before identifier 'dlgReportView". here is my code snipet

    //My own class
    #include "BPLS Assessment.h"
    #include "RecordViewer.h"

    class CManagerialReport
    {
    public:
    CReportViewer dlgReportView; // compiler error pointing here
    void ReportByMainBusiness(int iRepType,int iSize = 0);
    void RetrieveMBusiness();
    void RetrieveStatus();
    void Initialization();
    void RetrieveOwnKind();
    CStringArray m_sArrOwnKind,m_sArrBnsStat,m_sArrMainBusiness[2];
    CManagerialReport();
    virtual ~CManagerialReport();

    private:

    CString ComputeVariance(CString sStr1, CString sStr2, int iSwitch);
    CString sQuery;
    CBPLSAssessmentApp *pApp;
    _RecordsetPtr pSet;
    CString sCurrentYear;
    };


    im using MFC in this program... can anyone explain my prob and also the good approach/solution for this.

  2. #2
    Join Date
    Feb 2004
    Location
    Philippines
    Posts
    58
    i already figured out the problem.... me and my big eyes...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured