Is There a Way of creating an Object from an Unregistered ActiveX dll?
I know CreateObject Can Do It If they're Registered but Can You do It just From the dll File, without having to register it?
Printable View
Is There a Way of creating an Object from an Unregistered ActiveX dll?
I know CreateObject Can Do It If they're Registered but Can You do It just From the dll File, without having to register it?
WHen you are Registering an activex dll you are
informing Windows Several things among which CLASS-ID is
Important !
SO Without that Knowledge You cannot reuse the class
contained in that dll.
You have to register. :)
But Surley when you Regester the Class that information Comes from Indide the dll, can't I extract the Information Needed from the dll at run time and use that? If not why not?
Good Question..
But do you think..It is enough if your program and the dll
concerned alone know the class information ?
Won't you give a chance for windows to know about
what you are going to do with the dll and allocate
resources accordingly. The very act of informing the
OS about this dll is called 'Registration'. It doesn't
matter if you do it from an external application like
Regsvr32.exe or from your own app. When you do register
you are saying like ...this dll will access these kind of
resources, wants to load at this particular region of
memmory avoiding the default ....etc...
possibly
I'm Not Really bothered about that, We're trying to use the dll Files in the Same Way you'd use a text file, we need Loads and Loads of them with the user able to add and remove them at any time, the Program wants to check what dlls are there and use those, I think it's completly pointless registering them all. Especially as they will only be used by this Program.
Having Said that, is there a way of unregistering the dll?
Yep, DllUnregisterServer.
Lovley, Thanks a Lot.
Never heard of DLLRegisterServer / DllUnregisterServer. What exactly does it do?
I would have thought regsvr32 was the tool to use. use the /u option to specify that you would like to unregister.
Hey Sam, it is really DllUnregisterServer. I'm not being nasty.
I think the question was meant to be a little different than discussed by you people. If I am mistaken, treat this question as my own.
Registering a dll allows us to use it in other applications as well. I have a dll that only my application uses, and no one else. I want to use the dll without registering it at any time. Is THIS possible?
This means I am not using any DLLRegisterServer or something to register the dll at runtime.
If you want to use ActiveX dll's, no you can't.
Crazy D,
You said it was not possible using ActiveX dll files. Is there a way to do this using some other way? Do you mean it is not possible using VB, but may be possible with C++ or some other language?