Chinaunix首页 | 论坛 | 博客
  • 博客访问: 445964
  • 博文数量: 96
  • 博客积分: 6045
  • 博客等级: 大校
  • 技术积分: 906
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-03 11:29
文章分类

全部博文(96)

文章存档

2014年(1)

2012年(22)

2011年(23)

2010年(31)

2008年(1)

2007年(18)

分类: C/C++

2011-05-09 09:42:23

HRESULT LoadRegTypeLib(
  REFGUID  rguid,             
  unsigned short  wVerMajor, 
  unsigned short  wVerMinor,(一般默认为0) 
  LCID  lcid,      (一般默认为0)            
  ITypeLib FAR* FAR*  pptlib  
);
参数
rguid :类型库ID
wVerMajor:主版本号
wVerMinor:副版本号
lcid :语言代码
pptlib:指向类型库的指针的指针

返回值:
   返回一个句柄.
   该句柄的值如下:
S_OK Success.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG One or more of the arguments is invalid.
TYPE_E_IOERROR The function could not read from the file.
TYPE_E_INVALIDSTATE The type library could not be opened.
TYPE_E_INVDATAREAD The function could not read from the file.
TYPE_E_UNSUPFORMAT The type library has an older format.
TYPE_E_UNKNOWNLCID The passed in LCID could not be found in the OLE-supported DLLs.
TYPE_E_CANTLOADLIBRARY The type library or DLL could not be loaded.
Other return codes All FACILITY_STORAGE and system registry errors can also be returned
阅读(2321) | 评论(0) | 转发(0) |
0

上一篇:SysAllocStringLen

下一篇:#define用法

给主人留下些什么吧!~~