VC++语言下新建一个X86的Windows窗体控件库。
在VC++或者C#窗体控制程序里,从工具箱里拖拽窗体控件库工程自动生成的UserControl进行组装Form时,提示:
未能加载工具箱项"xxx",将从工具箱里移除。
调查发现,在预编译头里通过#pragma comment导入了几个C++的类库。如果注释掉这些导入,一切就正常。
导入的C++类库、窗体控件库和窗体控制程序都是Win32。
请问,如何配置才可以解决这个头疼的问题。
// stdafx.h : 标准系统包含文件的包含文件,
// 或是经常使用但不常更改的
// 特定于项目的包含文件
//
#ifndef _GW_test_IO_H_
#define _GW_test_IO_H_
#pragma once
#pragma warning(disable : 4272)
#pragma warning(disable : 4394)
#pragma warning(disable : 4561)
/** gwCore */
#include "gwCore/gwCoreDef/gwInclude.h"
#include "gwCore/gwCoreDef/gwCoreEnums.h"
#include "gwCore/gwCoreDef/gwCoreStructs.h"
#pragma unmanaged
#include "gwCore/gwExtensionInclude/gwQtInclude.h"
//导致出问题的pragma comment(lib, xxx)
//#include "gwCore/gwSystem/gwSystemIO.h"
//#include "gwCore/gwSystemDraft/gwSystemDraftIO.h"
//#include "gwCore/gwGeometry/gwGeometryIO.h"
#pragma managed
#endif