failed to create menus怎么办(如何在vc++6.0中引用bcgcontrolbar控件)

本文目录
- 如何在vc++6.0中引用bcgcontrolbar控件
- 我的电脑是XP系统,32位,安装Anaconda2-4.1.1-Windows-x86时出现错误failed to create Anaconda menus
- 安装一个游戏时显示“failed to create canvas” 不知什么意思 请教大神们该怎么办
- 无主之地2启动时failedtocreate
如何在vc++6.0中引用bcgcontrolbar控件
要先将工程修改为bcg工程,才可以使用bcgcontrolbar,具体方法见如下资料:
Add BCGCBPro directory to INCLUDE path
Make sure, that you call AfxOleInit() in your application InitInstance()
Add the following include to the stdafx.h file:
#include "BCGCBProInc.h"
Add CBCGPWorkspace-derivation to your application class:
class CMyApp : public CWinApp,
public CBCGPWorkspace
First, you need to define where your customization data will be saved in the registry and which optional customization features (mouse, keyboard, context menus) will be required. To do it, in CMyApp::InitInstance set registry entry and initialize customization managers:
SetRegistryBase (_T("Settings"));
// Initialize customization managers:
InitMouseManager();
InitContextMenuManager();
InitKeyboardManager();
If you’ve decided to use either mouse or context menus customization, you need to "attach" a required views to the mouse customization manager and initialize context menus. Override CBCGPWorkspace::PreLoadState method:
class CMyApp ....
{
...
virtual void PreLoadState();
...
};
void CMyApp::PreLoadState()
{
// Associate mouse event with specific view(s):
GetMouseManager()-》AddView (iIdTestView, _T("Test view"), IDR_VIEW);
// Initialize context menus:
GetContextMenuManager()-》AddMenu (_T("Test menu"), idMenu);
}
Change CMDIFrameWnd to CBCGPMDIFrameWnd both in mainframe.h and mainframe.cpp files (in case of SDI application change CFrameWnd to CBCGPFrameWnd)
Change CMDIChildWnd to CBCGPMDIChildWnd
Change CToolbar to CBCGPToolBar and add an embedded menu bar object into your CMainFrame class:
CBCGPMenuBar m_wndMenuBar; // New menu bar
CBCGToolBar m_wndToolBar; // Application toolbar
In the CMainFrame::OnCreate() method add the following lines to enable the menu bar functionality:
// Create menu bar (replaces the standard menu):
if (!m_wndMenuBar.Create (this))
{
TRACE0("Failed to create menubar\n");
return -1; // fail to create
}
m_wndMenuBar.SetBarStyle (m_wndMenuBar.GetBarStyle() |
CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
To enable menu bar docking, add the following code:
m_wndMenuBar.EnableDocking (CBRS_ALIGN_ANY);
DockControlBar (&m_wndMenuBar);
我的电脑是XP系统,32位,安装Anaconda2-4.1.1-Windows-x86时出现错误failed to create Anaconda menus
不是完整的文件导致的,如下参考:
1.首先,双击以打开anaconda3-5.0.1-windows-x86_64.exe,然后单击next。
2.然后点击我同意。
3.直接选择JustMe,然后单击Next。
4.单击Browse选择安装位置。
5.在这里选择两个选项。第一个选项表示将安装路径写入环境变量,然后单击Install。
6.验证安装是否成功,查看以下信息,安装是否成功。
安装一个游戏时显示“failed to create canvas” 不知什么意思 请教大神们该怎么办
创造应用程序失败 或 安装失败 建议关闭杀软和360 再重新安装
关闭360安全卫士 360杀毒 重新安装,100%成功 然后再以管理员身份运行就好了
无主之地2启动时failedtocreate
题主是否想询问“无主之地2启动时报错怎么办”?
1、文件夹命名有误,检查游戏文件夹路径,把所有的中文路径都改成英文和数字即可。
2、游戏放于根目录,游戏放在根目录下会造成无法正常运行,只需要在根目录下再新建一个文件夹,然后将游戏放到该文件夹内即可。
3、解压游戏文件时候出错,下载完游戏后再解压的时候系统会报错,解压报错的话是压缩包在下载过程中出现错误,引起游戏文件缺失,大的文件缺失会引起游戏无法启动,或者在游戏进行到一定剧情时报错。

更多文章:
css表白代码(谁能告诉我,在百度空间上仿QQ空间的CSS所有代码)
2026年4月19日 12:30
化学反应工程与工艺期刊(国际上影响因子较高的关于催化剂方面的杂志有哪些)
2026年5月24日 10:00
js实现队列(javascript函数节流和函数防抖之间的区别)
2026年8月30日 20:15
clip converter(用ClipConverter下载的youku视频在电脑哪个文件夹)
2026年8月24日 21:15
matlabplot点的形状(MATLAB作图时,如何把标志数据点的形状做成实心的)
2026年1月13日 09:15
配置管理属于什么职位类型(公司让我从需求工程师转做配置管理工程师,大神们怎么看,哪个发展前景好一些ps:我是应届毕业生,还)
2025年9月1日 04:15
easyui获取数据表格的值(Easyui中获取datagrid某多个列的值)
2025年5月30日 22:45
oracle datediff(oracle 时间相减函数)
2025年9月13日 22:15
java培训好还是自学好(Java软件开发,是自学的好还是参加java培训机构)
2026年5月26日 11:45
js修改style属性(js如何改变一个图片的style的top属性)
2026年2月4日 02:15
dw软件官方免费下载中文版(Dreamweaver哪里有免费版)
2026年1月9日 06:45
word2019开发工具控件属性是灰色的(为什么word打开以后,工具栏里边的命令都是灰色的)
2026年5月10日 18:45











