比如
//public.idl file
typedef
[
uuid(D124B04A-C5F9-4a16-9671-1E67B75DB1A1),
helpstring("NetWork Node Struct")
]struct Line
{
long id;//id号
BOOL Power;//有电标志
BSTR LineName;//线路名称
long StaPoint_x;//起点x
long StaPoint_y;//起点y
long EndPoint_x;//终点x
long EndPoint_y;//终点y
short EndType;//1 负荷 2 电源 0 其它
long Longth;
BOOL ShCirFlag;//短路标志
}Line;
//file end因为public.idl没有类型库library 语句定义类型库(所以无法生成类型库和.h文件), 别的idl好像无法包含或者导入public.idl是不是我设置有什么问题呢? 谢谢!
//public.idl file
typedef
[
uuid(D124B04A-C5F9-4a16-9671-1E67B75DB1A1),
helpstring("NetWork Node Struct")
]struct Line
{
long id;//id号
BOOL Power;//有电标志
BSTR LineName;//线路名称
long StaPoint_x;//起点x
long StaPoint_y;//起点y
long EndPoint_x;//终点x
long EndPoint_y;//终点y
short EndType;//1 负荷 2 电源 0 其它
long Longth;
BOOL ShCirFlag;//短路标志
}Line;
//file end因为public.idl没有类型库library 语句定义类型库(所以无法生成类型库和.h文件), 别的idl好像无法包含或者导入public.idl是不是我设置有什么问题呢? 谢谢!
解决方案 »
- 初学Windows编程,简单的创建windows窗口的程序问题,使用的环境是VS2010。
- 主窗口的定义在哪里找到呢?
- fisker0303进
- 使用MFC建立的扩展MFC动态库,能否被DELPHI JAVAE等开发工具调用?
- vc++属于c++吗?
- 请问如何让文字竖排?就跟中国古代的书上写的那样?
- 求助:如何用VC获得淘宝交易数据
- 如何在2个类中成员变量互相付值?
- 我装了vc以后,经常打开ie窗口就出现"出现运行期错误..."我选是就打开一个窗口,好像是vc,咋回事?
- 在VC++6.0中使用COM组件进行二次开发时需要哪些必要步骤?
- 链接错误LNK2001如何解决?
- 如何在VC下动态生成ACCESS数据库?
一个IDL文件引用这个结构体以后, MIDI工具会为这个结构体生成类型库?