Strange return value of CoInitializeEx

KomsBomb 2002-08-21 11:57:56
res := CoInitializeEx(nil, InitVal);

If InitVal is COINIT_APARTMENTTHREADED,res is 1(S_FALSE).
And if InitVal is other value,res is an error,OleCheck will raise a
exception EOleSysError with message "The required interface hasn't been
registered in the server object"(Because I use Chinese system,the message is
in Chinese,the English is translated by me,so it maybe not accurate).
Why do I get such a result?How to let the API return 0(S_OK)?
Thank you advanced.

--
Koms Bomb


*****Pardon my poor English*****
---------------------
Don't worry,be happy.


这是我发在新闻组上的,所以是英文,大家将就看吧
...全文
47 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

5,391

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧