Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO Registration Issues

Status
Not open for further replies.

ontsjc

Technical User
May 17, 2000
113
Hello Again,

I'm having trouble getting createobject to work with the CDO.dll version 1.21. Similar to thread184-368073. I've loaded on cdo.dll in my windows\system directory. I registered it with "regsvr32 c:\windows\system\cdo.dll" and it claims to register fine. By the way I'm using Windows 98 here and VFP 7.0. When I issue oMSG = createobject("CDO.message"), I get the error "Class Defination CDO.message is not found"

When I look in the registry using regedit under HKEY_CLASSES_ROOT, I can't find the CDO object there. It turns out that it registers as:

MAPI.Session.1 with name = (Default) and Value = "CDO 1.21 Session Object"

I don't know much about the windows registry, but I found this strange, so I opened up CDO.dll in FoxPro's object browser. It opens with a library name of MAPI. The only listing under Classes is "Session". The only place "messages" appears is under the Interfaces menu.

I'm not quite sure what enums and interfaces are or how to access them.

Could this be the problem with CREATEOBJECT command?
 
ontsjc

I believe the Collaboration Data Objects requires more then CDO.DLL to run. Have you tried install it from the CD? If I do a search on my system for anything CDO (CDO*), I find:
1. CDO.DLL
2. CDOSYS.DLL
3. CDOEX.DLL
4. CDO32.DLL

And that is only the files that start with CDO. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
I've tried it both ways, install from cd and just placing the cdo.dll which the help file claims is possible.

When I search my system for CDO* I only get

cdo.dll - this is in the windows/system
cdo32.dll - this is in the windows/system32

I don't have the others. In which directories are they located?

Thanks for your help by the way.
 
ontsjc

CDOSYS.DLL =windows\system32
CDOEX.dll "C:\Program Files\Common Files\Microsoft Shared\CDO"


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
It works! the CDOSYS.DLL is the key.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top