Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - MFC regular dll,How to using XTPInitDLL Function?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MFC regular dll,How to using XTPInitDLL Function?

 Post Reply Post Reply
Author
Message
macai View Drop Down
Newbie
Newbie


Joined: 05 July 2012
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote macai Quote  Post ReplyReply Direct Link To This Post Topic: MFC regular dll,How to using XTPInitDLL Function?
    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


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.