Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11285
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: Loading an un-registered object ? |
| Date | 2016-04-20 17:14 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <nf8rca$7j1$1@dont-email.me> (permalink) |
| References | <57175fb9$0$5916$e4fe514c@news.xs4all.nl> <nf7usv$lu1$1@dont-email.me> <nf84ka$c65$1@dont-email.me> <nf86tl$l5m$1@dont-email.me> <5717df77$0$5892$e4fe514c@news.xs4all.nl> |
| The to-be-loaded object/DLL needs to expose a DllGetClassObject function, | after which you call the ClassFactories CreateInstance method, providing it | with the IID of the actual object (there might be more than one available). | | At least, that is what my code does, and it works well. :-) | | > Unless one processes the typelib inside the "masterkey" | > DLL and err-checks against calls coming in from VBS | > it could get very messy. | | No such thing is needed. Using the above loading method the only one using | the typelib, if at all present, is the instanciated object itself (also see | my other message). Interesting. So with a CLSID one can load the object. Without it one could still read the typelib to get that CLSID. But if WScript loads FSO it has the CLSID from the Registry and it also has the DLL file path from the Registry. There must be some reason why it will fail when it can't get the typelib.
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Loading an un-registered object ? "R.Wieser" <address@not.available> - 2016-04-20 12:54 +0200
Re: Loading an un-registered object ? "Mayayana" <mayayana@invalid.nospam> - 2016-04-20 09:08 -0400
Re: Loading an un-registered object ? "R.Wieser" <address@not.available> - 2016-04-20 16:04 +0200
Re: Loading an un-registered object ? "Mayayana" <mayayana@invalid.nospam> - 2016-04-20 11:14 -0400
Re: Loading an un-registered object ? "R.Wieser" <address@not.available> - 2016-04-20 21:35 +0200
Re: Loading an un-registered object ? "R.Wieser" <address@not.available> - 2016-04-21 09:33 +0200
Re: Loading an un-registered object ? GS <gs@v.invalid> - 2016-04-20 10:47 -0400
Re: Loading an un-registered object ? "Mayayana" <mayayana@invalid.nospam> - 2016-04-20 11:25 -0400
Re: Loading an un-registered object ? GS <gs@v.invalid> - 2016-04-20 14:31 -0400
Re: Loading an un-registered object ? "R.Wieser" <address@not.available> - 2016-04-20 21:59 +0200
Re: Loading an un-registered object ? "Mayayana" <mayayana@invalid.nospam> - 2016-04-20 17:14 -0400
Re: Loading an un-registered object ? "R.Wieser" <address@not.available> - 2016-04-21 10:16 +0200
Re: Loading an un-registered object ? "R.Wieser" <address@not.available> - 2016-04-21 13:39 +0200
Re: Loading an un-registered object ? "Mayayana" <mayayana@invalid.nospam> - 2016-04-21 09:49 -0400
Re: Loading an un-registered object ? "R.Wieser" <address@not.available> - 2016-04-21 17:07 +0200
Re: Loading an un-registered object ? "R.Wieser" <address@not.available> - 2016-04-20 20:01 +0200
csiph-web