"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
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
"Slava Plyushchikov" <mo...@attglobal.net> wrote in message
news:#kTvXsnx$GA.171@cppssbbsa04...
Carmel
"Sachin Desai" <sachin...@hotmail.com> wrote in message
news:ut09sHqx$GA.171@cppssbbsa04...
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
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...