Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
374 views
in Technique[技术] by (71.8m points)

vbscript - CreateObject("Redemption.RDOSession") returns error code 800401FA

I'm trying to use the redemption library in my script now and I can't load it.

Set m_objRDOSession = CreateObject("Redemption.RDOSession")

I have also tried to load it directly like the following

Set m_objRDOSession = GetObject("Redemption.dll", "Redemption.RDOSession")

Both the same error code, with null message and source.

I'm using windows 64 bit with outlook 32 bit. I have successfully loaded the library with c# and the redemption loader on the same machine.

PS: I should mention that I saw the terms and agreement prompt before the error got thrown.

What can I do?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Error code 0x800401FA is CO_E_WRONGOSFORAPP.

If the machine is 64 bit, you will end up using the 64 bit version of cscript.exe, but the bitness of your code must match the bitness of Outlook - use cscript.exe from the SysWow64 folder.

Extended MAPI is a set of dlls loaded in-proc, and a 64 bit process cannot load a 32 bit dll and vice versa.

See http://www.dimastr.com/redemption/faq.htm#ErrorCreatingRedemptionObject for more details.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...