Print Page | Close Window

Help: How to load a Tool Bar From a DLL?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2162
Printed Date: 06 October 2024 at 2:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Help: How to load a Tool Bar From a DLL?
Posted By: atandix
Subject: Help: How to load a Tool Bar From a DLL?
Date Posted: 28 April 2005 at 12:03am

I'm now working on a project with plug-in infrastructure. The plug-ins are DLLs.

Each DLL has it's own ToolBar in its res file, which leads to its internal functions.

The main program has to load these toolbars. But I have some trouble in loading DLL ToolBar.

Following code will lead to errors in DLL export functions.

CXTPToolBar* pStandardBar = pCommandBars->Add(_T("Plug-in1"), xtpBarTop);
 if (!pStandardBar ||
     !pStandardBar->LoadToolBar(ID_TOOLBAR_CUSTOM))
 {
     TRACE0("Failed to create toolbar\n");
 }




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