|
-
Jul 15th, 2000, 05:48 PM
#1
Thread Starter
Frenzied Member
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?
-
Jul 15th, 2000, 06:08 PM
#2
Addicted Member
That's Impossible!
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. 
If you can't pronounce my name, call me GURU 
-
Jul 15th, 2000, 08:02 PM
#3
Thread Starter
Frenzied Member
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?
-
Jul 16th, 2000, 08:03 AM
#4
Addicted Member
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...
If you can't pronounce my name, call me GURU 
-
Jul 16th, 2000, 08:38 AM
#5
Thread Starter
Frenzied Member
-
Jul 16th, 2000, 06:40 PM
#6
Thread Starter
Frenzied Member
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?
-
Jul 17th, 2000, 03:44 AM
#7
Addicted Member
Yep, DllUnregisterServer.
Regards,
Laurens
Using VB5 Enterprise edition SP3
VB6 Enterprise edition SP5
-
Jul 17th, 2000, 05:46 AM
#8
Thread Starter
Frenzied Member
-
Jul 17th, 2000, 06:03 AM
#9
Fanatic Member
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.
Iain, thats with an i by the way!
-
Jul 17th, 2000, 07:47 AM
#10
Addicted Member
Hey Sam, it is really DllUnregisterServer. I'm not being nasty.
Regards,
Laurens
Using VB5 Enterprise edition SP3
VB6 Enterprise edition SP5
-
Jul 19th, 2000, 04:33 AM
#11
Well ....
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.
-
Jul 19th, 2000, 04:55 AM
#12
Hyperactive Member
If you want to use ActiveX dll's, no you can't.
-
Jul 24th, 2000, 12:35 AM
#13
Well ....
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|