Print Page | Close Window

MFC regular dll,How to using XTPInitDLL Function?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=19922
Printed Date: 16 November 2024 at 2:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MFC regular dll,How to using XTPInitDLL Function?
Posted By: macai
Subject: MFC regular dll,How to using XTPInitDLL Function?
Date 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





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net