Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Cali - Colombia

    Post Unanswered: Crystal Reports 9 and Visual C++

    Hi all!

    I'm trying to preview a report using the help files supplied by crystal reports, concerning to class creation and member variables and functions to have in my project. Due to such version works using Model Object Component COM, in help files make reference to a variables of type IApplicationPtr and IReportPtr, pointing to a Craxddrt Application Object and Craxddrt Report Object respectively. for doing call to the Preview. When I compile my project, it shows errors due to such type member variables before mentioned not exists. Parts of source code:

    class CEmbeddable_DesignerDlg : public CDialog
    // Construction
    CEmbeddable_DesignerDlg(CWnd* pParent = NULL);

    IApplicationPtr m_Application;
    IReportPtr m_Report;

    Next lines are main uses of such variables:

    m_Application.CreateInstance("CrystalDesignRuntime .Application");

    // Open the report selected from the Open dialog box.
    m_Report = m_Application->OpenReport(FileName);

    when compiled:

    error C2501: 'IApplicationPtr' : missing storage-class or type specifiers
    error C2501: 'IReportPtr' : missing storage-class or type specifiers

    Thanks for your help

  2. #2
    Join Date
    Feb 2004
    ensure you #include all necessary header files and check if you need to link to any libraries?


Posting Permissions

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