Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2004

Tip: Looking for answers? Try searching our database.

Mixed code - "not registered"?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phre2d - 25 Jun 2004 17:08 GMT
We are attempting to move a large development project into the .NET
age over time.  We have a large number of ATL-based COM objects in
this project.  Following the "Journal Poster" example provided by MS,
I have converted some of my COM projects into mixed code so that there
is both a .NET and COM interface to the underlying logic.  So far, so
good.

In one of these former COM projects, four additional COM objects are
within from the underlying logic as a matter of executing the main
interface method.  Our testing shows that this all works perfectly
well through older programs that are using this project as a COM
object, but when accessed as a .NET class library, only three of the
four objects are loaded properly - attempting to create the dispatch
for the fourth COM object causes a COM exception reporting that the
object is not registered.  

I have traced the problem right down to the call to CoCreateInstance
and I have checked the registry, but I'm at a loss as to how to
proceed from here.  Any ideas?  Other than not being registered, what
can cause a "not registered" message?
Ronald Laeremans [MSFT] - 07 Jul 2004 11:34 GMT
Another common reason for a not registered error is that the this interface
would need a customer marshaller and that marshalling code is not
registered.

One of the reasonable ways to diagnose would be to use ntregmon or another
tool that shows registry calls to see what COM is looking for.

Ronald Laeremans
Visual C++ team

> We are attempting to move a large development project into the .NET
> age over time.  We have a large number of ATL-based COM objects in
[quoted text clipped - 21 lines]
>    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.