WD95: WordBasic Err=582 "Unable to Load Specified Library"

Last reviewed: February 5, 1998
Article ID: Q132214
The information in this article applies to:
  • Microsoft Word for Windows 95, versions 7.0, 7.0a

SYMPTOMS

You receive the one of the following error messages:

   WordBasic Err= 582, Unable to load specified library

   -or-

   WordBasic Error = : Invalid library

This happens when you do any of the following in Word for Windows 95, version 7.0:
  • Run a macro or wizard designed for Word for Windows, version 2.0 or 6.0
  • Open or save a file
  • Start Word

NOTE: This problem occurs only in Word version 7.0 running under Windows 95; it does not occur in Word versions 2.0 or 6.0 under Windows 95.

This problem does not occur in Word 97 for Windows. When you open a Word 2.x document into Word 97, the macros are not converted. When you open a Word 6.x or 7.x document into Word 97, the macros are converted to Visual Basic macros.

CAUSE

Macros, wizards, templates, and global add-in programs that worked in earlier versions of Word may not run at all in Word for Windows 95. This happens when a macro designed for an earlier version of Word makes a call to a 16-bit DLL (dynamic link library), or when an add-in program that was designed to run in 16-bit Windows 3.x is run in Word 7.0. Word 7.0 is a 32- bit application and cannot communicate with 16-bit DLLs.

Word version 2.0 and Word version 6.0 will run under Windows 95, and these programs can successfully work with 16-bit DLLs.

TROUBLESHOOTING

If you receive this error message when starting Word or opening a new file, the following instructions may help you locate the source of the problem:

  1. Look for Auto macros:

        a. On the Tools menu, click Macros.
    

        b. In the Macros Available In list, select All Active Templates.
    

        c. Look for any macros that start with the word "Auto," such as
           AutoNew, AutoOpen, AutoExec, and AutoClose or "File," such as
           FileOpen, FileAssist.
    

        d. Click the Organizer button.
    

        e. Click the Macros tab.
    

        f. Highlight any Auto or File macro, and click the Rename button. Give
           the macro a new name by placing another letter at the beginning of
           the macro name. The macro will still be available, but it won't load
           automatically.
    

        g. Repeat the procedure that produced the problem. If the error message
           persists, continue with steps 2 and 3. If the message no longer
           appears, either rewrite the macro or contact the person who wrote it
           to get an updated macro.
    

  2. Look in the Startup folder for global templates and add-ins:

        a. Using Explorer, look in Word's Startup folder.
    

        b. Temporarily move the items from the Startup folder to the Desktop.
    

        c. Restart Word.
    

        d. If the error message persists, continue with step 3. If the message
           no longer appears, contact the creator of the add-in for an updated
           file.
    

  3. Look in File Templates for other global templates and add-ins:

        a. On the File menu, click Templates.
    

        b. In the "Global Templates and Add-ins" list, clear (remove the X
           from) any item that is selected.
    

        c. Restart Word.
    

WORKAROUND

If you are using a wizard or macro supplied with Word 6.0, you may be able to use a similar wizard or macro that comes with Word 7.0. The following are similar:

   Word 6.0 Wizard Name     Word 7.0 Wizard Name
   --------------------     --------------------

   Fax.wiz                  Fax Wizard.wiz
                            Professional Fax.dot
                            Contemporary Fax.dot
   Letter.wiz               Letter Wizard.wiz
                            Professional Letter.dot
                            Contemporary Letter.dot
   Memo.wiz                 Memo Wizard.wiz
                            Contemporary Memo.dot
                            Elegant Memo.dot
                            Professional Memo.dot

   Word 6.0 Macro Name      Word 7.0 Macro Name
   -------------------      -------------------

   PrnSel2File              SaveSelectionToTextFile in Macros7.dot
   FontSampleGenerator      (same name) in Macros7.dot
   PrintableCharacters      (same name) in Layout7.dot

If you are using a custom macro, you will need to rewrite it to use the 32- bit API function equivalents instead of the 16-bit API calls.

For additional information on determining 32-bit equivalents, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q120767
   TITLE     : Porting 16-Bit WordBasic Macros to 32-Bit WordBasic Macros

MORE INFORMATION

For more information, open Word Help and click the Find tab. Search for "WordBasic Error 582".

The following wizards and macros supplied with Word 6.0 will generate the error message when used in Word 7.0:

   Wizard Name        Filename        Macro Name             Template Name
   -----------        --------        ----------             -------------
   Agenda Wizard      Agenda.wiz      BatchConversion        Convert.dot
   Award Wizard       Award.wiz       EditConversionOptions  Convert.dot
   Calendar Wizard    Calendar.wiz    PrintableCharacters    Layout.dot
   Fax Wizard         Fax.wiz         FontSampleGenerator    Macro60.dot
   Letter Wizard      Letter.wiz      MindBender             Macro60.dot
   Memo Wizard        Memo.wiz        PrnSel2File            Macro60.dot
   Newsletter Wizard  Newslttr.wiz    AccessExporter         Tables.dot
   Pleading Wizard    Pleading.wiz
   Resume Wizard      Resume.wiz
   Table Wizard       Table.wiz

In addition, if you are using a custom macro that contains any of the following commands, you will receive the error message described above:

   FindWindow
   CreateWindow
   GetActiveWindow
   GetModuleHandle
   SendMessage
   ShellExecute

The following list of common add-ins have produced the error message described above:

   Alki Software's MasterWord
   Woody Leonhard's "WOPR" package
   Bookshelf 94 integration
   Internet Assistant 1.0
   Norton File Assistant
   Norton Desktop

Contact the add-in vendor or macro author for an update.

The third-party products included here are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability.


Additional reference words: template MAPI ODBC CAPI Woody's Office Power
Pack mscreate.dir File Assist
Keywords : kbinterop kbmacro
Version : 7.0 7.0a
Platform : WINDOWS


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: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.