Microsoft KB Archive/132214

From BetaArchive Wiki

Article ID: 132214

Article Last Modified on 8/17/2007



APPLIES TO

  • Microsoft Word 95 Standard Edition
  • Microsoft Word 95a



This article was previously published under Q132214

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:
    1. On the Tools menu, click Macros.
    2. In the Macros Available In list, select All Active Templates.
    3. Look for any macros that start with the word "Auto," such as AutoNew, AutoOpen, AutoExec, and AutoClose or "File," such as FileOpen, FileAssist.
    4. Click the Organizer button.
    5. Click the Macros tab.
    6. 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.
    7. 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:
    1. Using Explorer, look in Word's Startup folder.
    2. Temporarily move the items from the Startup folder to the Desktop.
    3. Restart Word.
    4. 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:
    1. On the File menu, click Templates.
    2. In the "Global Templates and Add-ins" list, clear (remove the X from) any item that is selected.
    3. 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.


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 query words: template MAPI ODBC CAPI Woody's Office Power Pack mscreate.dir File Assist

Keywords: kbinterop kbmacro KB132214