PRB: Can't Load Custom Control SPIN.VBX

Last reviewed: June 21, 1995
Article ID: Q113326
The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic

  for Windows, version 3.0

SYMPTOMS

You may get the following error when loading a project that contains the Spin custom control into Visual Basic, when loading the SPIN.VBX file into Visual Basic, or when running an existing .EXE file that uses the Spin custom control:

     Can't load Custom Control DLL: 'C:\WINDOWS\SYSTEM\SPIN.VBX'

CAUSE

We have had reports that customers have had conflict with the following products that are not manufactured by Microsoft:

  • Custom Cursor Deluxe, from Micro Speed, FreeMont, CA (510-490-1403)
  • OriginFx Screen Save, from Origin Systems Inc.

In both cases, the products used a SPIN.DLL that was loaded before the SPIN.VBX load was attempted. Windows will not allow two DLLs of the same name, so whichever is second fails to load.

WORKAROUND

Simply renaming the SPIN.VBX file will not fix the problem. The name that is loaded into memory will still be SPIN even if the .VBX file name is changed. This is something that would have to be changed when rebuilding the file.

If users of these conflicting files are attempting to run finished applications which use these 'Spin' files, they will not be able to run both programs simultaneously in Windows.

If the programs are run one at a time -- that is, the first is loaded and then unloaded before the second is invoked -- and the problem persists, it may be necessary to do an explicit FreeModule call to release the previously loaded .VBX or .DLL file.

STATUS

As far as Windows is concerned, this is by design. You are not allowed to load two DLLs (a VBX is loaded the same as a DLL) with the same name.


Additional reference words: 3.00
KBCategory: kbprg kbprb
KBSubcategory: PrgCtrlsCus


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.