CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++.

    Reply
     
    Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
      #1    
    Old July 24th, 2005, 06:53 AM
    BrucePataki BrucePataki is offline
    Junior Member
     
    Join Date: Jul 2005
    Posts: 9
    BrucePataki is an unknown quantity at this point (<10)
    Red face Active Document Server HELP!

    I am using MFC Application wizard provided with VC++.Net to generate an application with DocView Support. I have selected Full Server i.e. Active document server and Active Document container.

    I want to separate the view class and data class. I.e I want a form to take input and then after processing the data the data should show up in a separate form. I am unable to include view class files in any of the other class files. When I do so I face errors as listed below.

    Basically I want to call the view class methods from other class. So for doing that I included the view class file in the other class but it gives me the following errors.
    Please help and send me some tips if you can.


    ------ Build started: Project: TEST, Configuration: Debug Win32 ------

    Compiling...
    TESTDM.cpp
    e:\Data\TEST\projects\TEST\TEST\TestModule.h(15) : error C2065: 'IDD_DIALOG1' : undeclared identifier
    e:\Data\TEST\projects\TEST\TEST\TESTView.h(17) : error C2065: 'IDD_TEST_FORM' : undeclared identifier
    e:\Data\TEST\projects\TEST\TEST\TESTView.h(21) : error C2143: syntax error : missing ';' before '*'
    e:\Data\TEST\projects\TEST\TEST\TESTView.h(21) : error C2501: 'CTESTView::CTESTDoc' : missing storage-class or type specifiers
    e:\Data\TEST\projects\TEST\TEST\TESTView.h(21) : error C2501: 'CTESTView::GetDocument' : missing storage-class or type specifiers
    e:\Data\TEST\projects\TEST\TEST\TESTView.h(21) : warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int'

    Build log was saved at "file://e:\Data\Test\projects\Test\Test\Debug\BuildLog.htm"
    TEST - 5 error(s), 1 warning(s)
    Reply With Quote
      #2    
    Old July 24th, 2005, 09:06 AM
    stober stober is offline
    Senior Member
     
    Join Date: Jun 2002
    Posts: 1,411
    stober  is a jewel in the rough (300+)stober  is a jewel in the rough (300+)stober  is a jewel in the rough (300+)stober  is a jewel in the rough (300+)
    Re: Active Document Server HELP!

    include resource.h at top of testdm.cpp, but after stdafx.h
    Reply With Quote
      #3    
    Old July 24th, 2005, 05:35 PM
    Andreas Masur Andreas Masur is offline
    Moderator
    Power Poster
     
    Join Date: May 2000
    Location: KY, USA
    Posts: 18,610
    Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)Andreas Masur has a brilliant future (2000+)
    Re: Active Document Server HELP!

    [ Merged threads ]
    __________________
    Ciao, Andreas

    "Software is like sex, it's better when it's free." - Linus Torvalds


    Article(s): Allocators (STL) Function Objects (STL)
    Reply With Quote
      #4    
    Old July 25th, 2005, 10:51 AM
    BrucePataki BrucePataki is offline
    Junior Member
     
    Join Date: Jul 2005
    Posts: 9
    BrucePataki is an unknown quantity at this point (<10)
    Smile Re: Active Document Server HELP!

    Thanks Stober. It fixed my compilation problems.

    Running the application where we feed the data from one window and display in another window having list view control - I notice that data is correctly passed on for display in view class. However, I tried to create a list view control pointer like this:

    CListCTRL* pList = (CListCTRL *) GetDlgItem (IDC_List1);

    which in turn gives me runtime error in winocc.cpp that debug assertion failed at line 94:

    Line 94 in winocc.cpp is
    ASSERT(::IsWindow(m_hWnd));

    If you know how to fix this problem or have any tips, I would surely appreciate.

    Bruce
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 07:50 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009