Re: VB6 DLL Beta-test Failure



"Jon Ripley" <jon@xxxxxxxxxxxxx> wrote in message
news:1Naef.3243$6A4.2642@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I am writing a plugin for APIViewer, a popular development tool, this
> plugin is in the form of a Visual Basic 6.0 DLL and is based on source
> code from the supplied SDK.
>
> Everything seems to work perfectly on my development machine but every
> one of the (wonderful) people helping me to beta test the plugin are
> getting the following error on the second and all subsequent versions of
> the plugin they receive:
>
> Run-time error '-2147221231 (80040111)': Automation error
> ClassFactory cannot supply requested class
>
> The first plugin received for beta testing always works fine but every
> subsequent one fails. The DLL filename does not change between versions.
>
> I am not sure what is going on here or what to tell my beta-testers but
> I get the impression that this is a generic problem not specifically
> related to the application in question.
>
> Assistance would be appreciated, code can be supplied.

Its a COM Component, and as such must be unregistered before you copy in
the new one. After unregistering the old, you can copy in, and register
the new dll.

Strictly speaking, the above is only neccessary if you have broken the
interface. But the behaviour you are describing makes me think that
you have.

Always turn on Binary compatibility i VB. It will then warn & ansk you
when you try to compile a dll that isn't binary compatible with your
original.

As to what to do with your testers machines... It's called "Dll Hell"
for a reason... RegClean maybe?

--
Dag.


.



Relevant Pages

  • Re: Access base window class (FromHandlePermanent)
    ... The way I handle this is to specify a "plugin interface". ... The DLL, to be a valid plugin, must export a number of functions that are called by the ... fact that the hosting app might be statically linked, ...
    (microsoft.public.vc.mfc)
  • Re: Dynamically loading DLLs dynamically that have dependencies...
    ... I'm building an app with a simple plugin architecture (all in the same ... In one particular case this dependency is to a C++ DLL called ... Is this DLL having trouble finding it's dependent DLL that's in the ... Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to program plugin DLLs
    ... >own popup menu depending on the plugin that manages it. ... Generally, you should do the GetProcAddress exactly once, when the DLL is loaded, because ... What I might consider here is a method which fills in a popup menu. ... you should keep pointers to objects instead of indices to arrays because array ...
    (microsoft.public.vc.mfc)
  • Re: Spent all day tracking down this VC8/VC7.1 STL bug.
    ... through the code reveals that it automatically creates the facet objects ... AFAIK this bug generally plagues plugin architectures. ... ISTR that it's caused by some function decoration being ... > <some DLL> which has been unloaded at this point. ...
    (microsoft.public.vc.stl)
  • VB6 DLL Beta-test Failure
    ... I am writing a plugin for APIViewer, a popular development tool, this ... The DLL filename does not change between versions. ... The Wiki Wiki Web for 8-Bit Acorn Computers ...
    (comp.lang.basic.visual.misc)