Ask a problem,about inheritance :)

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2006
Posts: 14
Reputation: rxgmoral is an unknown quantity at this point 
Solved Threads: 0
rxgmoral rxgmoral is offline Offline
Newbie Poster

Ask a problem,about inheritance :)

 
0
  #1
Jul 14th, 2006
Ask a problem,about inheritance
  1. ****************static DLL*****************
  2. <<<<<<<<<CmView.H>>>>>>>>>>>
  3. #pragma once
  4. class AFX_NOVTABLE CmView : public CView
  5. {
  6. public:
  7. __declspec(dllexport) CmView();
  8. };
  9. <<<<<<<<<CmView.CPP>>>>>>>>
  10. #include "stdafx.h"
  11. #include "CmView.h"
  12. CmView::CmView()
  13. {
  14. }
  15.  
  16. ******************static EXE******************
  17. <<<<<<<<EXEView.h>>>>>>>>>
  18. #pragma once
  19. #include "CmView.h"
  20. #pragma comment(lib,"dll.lib")
  21. class EXEView : public CmView
  22. {
  23. ...........
  24. };
  25. <<<<<<<<<EXEView.Cpp>>>>>>>>>
  26. #include "stdafx.h"
  27. #include "EXEView.h"
  28. #ifdef _DEBUG
  29. #define new DEBUG_NEW
  30. #endif
  31. IMPLEMENT_DYNCREATE(CInfoEngineView, CmView)
  32. .......................
error:
error C2039: 'classCmView' : is not a member of 'CmView'
see declaration of 'CmView'
error C2065: 'classCmView' : undeclared identifier
why......
thank you
Last edited by WolfPack; Jul 14th, 2006 at 1:43 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 65
Reputation: GloriousEremite will become famous soon enough GloriousEremite will become famous soon enough 
Solved Threads: 14
GloriousEremite GloriousEremite is offline Offline
Junior Poster in Training

Re: Ask a problem,about inheritance :)

 
0
  #2
Jul 14th, 2006
I'm not too familiar with that MFC specific stuff (like AFX_NOVTABLE and IMPLEMENT_DYNCREATE) but I don't think I see where your errors are coming from. Which line are they pointing to?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1295 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC