delphi2007 教程

delphi2007 教程

首页 新随笔 联系 聚合 管理
  1013 Posts :: 0 Stories :: 28 Comments :: 0 Trackbacks
使用CreateOleObject时报错--'无效的类别字符串' Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiAPI/html/delphi_20061127173640163.html
我在使用函数CreateOleObject(Purchasing.COM)时报如下的错误。在执行该语句之前,我已经用Registerdll注册了该路径下的DLL文件了啊。哪位大侠能帮忙解决下啦,谢谢!  
   
  ---------------------------  
  Debugger   Exception   Notification  
  ---------------------------  
  Project   Drive.exe   raised   exception   class   EOleSysError   with   message   '无效的类别字符串'.   Process   stopped.   Use   Step   or   Run   to   continue.  
  ---------------------------  
  OK       Help        
  ---------------------------  
 

CreateOleObject方法需要的参数是com组件的progid,虽然你注册了dll,但你的progid可能不正确导致出错。

posted on 2008-11-27 21:12 delphi2007 阅读(1546) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。