mr_unreliable
Fri Jan 26 17:27:56 CST 2007
Regarding the "enclosed CD" to the vb shell programming book,
er, um, there was no CD. The code for the drop handler (and
all the other code too) may be downloaded here.
http://examples.oreilly.com/vbshell/
The vb shell programming book also states that the drop handler
must have the IDropTarget and IPersistData interfaces, and the
example provided _does_ have those interfaces. But, I did spend
some time going through the registry looking at drop handlers,
and I didn't see those interfaces presented -- either as an
ole interface or a standard (stdcall) interface. Maybe those
are "hidden" interfaces, and detecting "hidden" interfaces is
a skill which I haven't quite acquired as yet.
More specifically, I looked at the vbscript (vbs) drop handler,
i.e., wshext.dll. (As best I can tell, this is also the drop
handler for winXP too). wshext.dll has a lot of interesting
stuff, _both_ ole interfaces and stdcall interfaces, _but_ no
apparent IDropTarget or IPersistData interfaces.
As to whether one can compile a dll (i.e., an actX dll) with
vb5cce, the answer is yes. As you probably know, an "ocx" is
a "special case" dll, with a graphic interface that can be
displayed when hosted by a "proper site" (for example an html
page or a vb form). However, you may also compile an ocx
_without_ a graphic interface, and it will just behave like
an "ordinary" dll -- in fact, you could just change the
extension to "dll" and it will work just fine.
As most of you know, microsoft no longer offers the free vb5cce
compiler for downloading, which is too bad. It can still be
useful for compiling COM objects for augmenting the vbscript
language. The last time I googled for "vb5ccein.exe" (the
vb5cce installer) the ONLY reference I could find was one in
Italy. I have since found one other download site:
http://www.vbcodesource.org/downloads/software/vb5cce.zip
Get it while you can -- unless, that is, you are one of those
sysadmins who are adamantly opposed to 3rd-party controls,
even a control that you write yourself (which is really a
FIRST-PARTY control).
cheers, jw