MFC regular dll,How to using XTPInitDLL Function? |
Post Reply |
Author | |
macai
Newbie Joined: 05 July 2012 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 05 July 2012 at 9:21am |
Hi,
Sorry, My english is poor. My project using XTreme Toolkit as a MFC regular DLL. the following code a class i defined: //... class CLeftView : public CXTShellTreeView { protected: // create from serialization only CLeftView(); DECLARE_DYNCREATE(CLeftView) // Attributes public: CTestSDIDoc* GetDocument(); // Operations public: // Overrides public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void OnInitialUpdate(); // called first time after construct // Implementation public: virtual ~CLeftView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: DECLARE_MESSAGE_MAP() }; //... using:VS2008 SP1 ,system window7 X64 but it can not create successful, and i debug it crash at the following code: void CLeftView::OnInitialUpdate() { CXTShellTreeView::OnInitialUpdate();//crash this. } debug it F11 into the function OnInitialUpdate()->PopulateTreeView(),F10 go on still "m_pTreeCtrl->Selet(hItemChild, TVGN_CARET);" then no longer c**tinue run and any prompt. so i search Xtreme Help Document ,i found the 'XTPInitDLL' Function will initialize the resources if call "XTPInitDLL();" locate my CXXXAPP::InitInstance() method. i don't know whether this method can solve the problem.and i don't know how to use it.anyone can help me ? by the way,anyone developed using MFC SDI dll with XTP ? the 'WinExplorer' form the Xtream Tooltik samples, how develop it as an MFC extension Dll or a MFC regular DLL? thank you . macai |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |