Solved

COM Object without registration

Posted on 1998-08-17
4
238 Views
Last Modified: 2010-04-04
Hi, Experts!
How ñan I use ComObjects without registrations them in Registry?
0
Comment
Question by:DValery
  • 2
4 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337146
I guess, you can't. At least I don't know of a way. Sorry. Zif.
0
 
LVL 4

Accepted Solution

by:
d003303 earned 20 total points
ID: 1337147
Agreed, it is definately not possible on a higher level. It depends on the kind of implementation.
If you want to use OLE services with the object, the answer is no. If you just want to use the object on your own WITHOUT any calls to OLE32.dll (e.g. marshalling to out-of-process servers), it is possible.

OLE does the following to initiate a COM object:
- looks up the CLSID in the registry and find the corresponding in-process-server where the object resists in (e.g. xyz.dll)
- Calls LoadLibrary to bind to that module (xyz.dll)
- Binds to its exported functions
  DllCanUnloadNow
  and
  DllGetClassObject
- Calls DllGetClassObject to retreive a pointer to the corresponding IClassFactory COM object
- Calls IClassFactory.CreateInstance to get the object

In background, DllCanUnloadNow is permanently called and the module is unloaded when the function succeeds.

Hope this helps,
Slash/d003303
0
 
LVL 1

Author Comment

by:DValery
ID: 1337148
Additional cooment:
I've create Class from Interface and wants to use its without registrations in the registry, it's possible? and as?
0
 
LVL 4

Expert Comment

by:d003303
ID: 1337149
Yes. If you have an instance of the corresponding IClassFactory object, call its CreateInstance with that interface ID.

Slash/d003303
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now