Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CDO.DLL regsvr32 Fails

179 views
Skip to first unread message

Sachin Desai

unread,
May 25, 2000, 3:00:00 AM5/25/00
to
Unable to register cdo.dll under W2K and Outlook2K. I installed the cdo.dll
under the winnt\system32 folder and when trying to register it, I get the
error:

"LoadLibrary("cdo.dll") failed - The specified module could not be
found".

I am assuming it is a program with dll registration since I am unable to
instantiate the object under this VC++6.0 code:

#import <cdo.dll>

/* following code is under On::OK() method on a form*/

HRESULT hr = pSession.CreateInstance("MAPI.Session");

if (FAILED(hr))
{
CString cs;
cs.Format("Instantiation Failed: 0x%08x", hr);
AfxMessageBox(cs, MB_OK | MB_ICONEXCLAMATION);
return;
}

and I get the error:

Instantiation Failed: 0x800401f3

Any help would be greatly appreciated.

Thanks in advance

--
Sachin Desai

Slava Plyushchikov

unread,
May 25, 2000, 3:00:00 AM5/25/00
to
I do not work with W2K.

In WinNT, If it says "The specified module could not be found", it means the
system cannot find a path to the file.

Try
RegSvr32.exe <full path>\cdo.dll
to register CDO COM servers first.

Then you may also try
#import "<full path>\cdo.dll"
in your program.

Slava.

"Sachin Desai" <sachin...@hotmail.com> wrote in message
news:ul6Xobnx$GA.277@cppssbbsa04...

Sachin Desai

unread,
May 25, 2000, 3:00:00 AM5/25/00
to
I tried to register the DLL from the directory that it resides in and no
resolution. The #import directive works too since the build works. Still no
luck

Sachin


"Slava Plyushchikov" <mo...@attglobal.net> wrote in message
news:#kTvXsnx$GA.171@cppssbbsa04...

Carmel Magen

unread,
Jun 21, 2000, 3:00:00 AM6/21/00
to
Check if the gapi32.dll is in the path accessible to the cdo.dll (in the
PATH or the same folder). The message "The specified module could not be
found" applies also to dlls the dll you're trying to register depends on.

Carmel


"Sachin Desai" <sachin...@hotmail.com> wrote in message

news:ut09sHqx$GA.171@cppssbbsa04...

Ryan Folstad

unread,
Aug 22, 2000, 3:00:00 AM8/22/00
to

cdo 1.2 does work on w2k.

make sure your cdo.dll is in
c:\program files\common files\system\mapi\1033\nt

cdo.dll is expecting other files to be in its current path which are not in
system32

there is a kb article detailing this fix for both nt4 and win2k but i cna't
remember the Q#..

Ryan

Siegfried Weber [MVP-Exchange]

unread,
Aug 24, 2000, 6:11:43 PM8/24/00
to

A couple of things to remember:

1. CDO 1.21 (cdo.dll) is NOT installed by default with Outlook 2000. If you
select it in your Office 2000 setup it is installed into:

c:\program files\common files\system\mapi\1033\nt


Where 1033 might be different because it's an indicator for the OS language.
So, if you're running Outlook 2000/Office 2000 and you don't have CDO 1.21
installed in this directory that run the Office setup again and add CDO
1.21. DO NOT just copy cdo.dll and run regsvr32.exe. This will fail because
of missing other files and settings.

2. If you're running Outlook 98 CDO 1.21 (cdo.dll) is installed by default
into your windows\system (e.g. with NT: C:\Winnt\System32) directory.

3. If you're running Outlook 97 CDO 1.21 (cdo.dll) isn't installed at all
and IFAK you need at least Outlook 97 v8.01 to get CDO 1.21 working. In this
case you can d/l CDO 1.21 from the MS Website:

http://www.microsoft.com/exchange/downloads/cdo.htm

--
Siegfried Weber

Microsoft Most Valuable Professional (MVP) - Exchange Server
Co-author of "Professional CDO Programming", Wrox Press 1999

CDOLive - The Premier Resource for Microsoft Collaboration Data Objects
http://www.cdolive.com

Please reply to the newsgroups so that others can benefit from the
discussion.
Questions by e-mail are discarded without further notice - filter active.

"Ryan Folstad" <ry...@tendigits.com> wrote in message
news:OkfYuCFDAHA.196@cppssbbsa05...

0 new messages