Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Help: How to load a Tool Bar From a DLL?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

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


Joined: 27 April 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote atandix Quote  Post ReplyReply Direct Link To This Post Topic: Help: How to load a Tool Bar From a DLL?
    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");
 }

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.109 seconds.