PRB: LNK2001 on __imp__ImageList_LoadImageA@28
  
PSS ID Number: Q138413
Article last modified on 10-23-1995
 
2.20
 
WINDOWS NT
 

---------------------------------------------------------------------
The information in this article applies to:
 
 - The development environment incuded with:
   Microsoft Visual C++, 32-bit Edition, version 2.20
---------------------------------------------------------------------
 
SYMPTOMS
========
 
The linker generates the following error message when building an MFC
project or the FIRE sample:
 
   eafxccd.lib(winctrl2.obj):error LNK2001:unresolved external
                        symbol "__imp__ImageList_LoadImageA@28"
 
CAUSE
=====
 
The linker used an incorrect version of Comctl32.lib. The correct version
should have a size of 109,164 bytes and should be found in the
..\Msvc20\Lib directory
 
RESOLUTION
==========
 
The error occurs because there is more than one copy of Comctl32.lib on the
hard drive. If you search in the hard drive, you may find copies of the
Comctl32.lib library in the following directories with the date and size in
bytes as shown.
 
    ..\Mstools\Lib\Comctl32.Lib   3/10/95    107,180
 
    ..\Msvc20\Lib\Comctl32.Lib    6/8/95     109,164
 
The correct version is the one in the ..\Msvc20\Lib directory. The linker
has found the wrong library while searching for Comctl32.lib.
 
To resolve the error, replace the Comctl32.lib in the ..\Mstools\Lib
directory with the one in the ..\Msvc20\Lib directory or follow these
steps:
 
1. In the Visual Workbench, on the Tools menu, click Options, and then
   click Directories. Then click Library Files, and check to see if the
   first entry is:
 
   ..\MSTOOLS\LIB
 
2. Remove this entry or make this entry the last one.
 
3. Build the project.
 
MORE INFORMATION
================
 
To reproduce the problem, copy the Comctl32.lib from the Visual C++ version
2.1 compact disc ..\Msvc20\Lib directory and build the FIRE sample.
 
Additional reference words: 2.2 9.10 COMCTL32.LIB MSTOOLS
KBCategory: kbtool kberrmsg kbprb
KBSubcategory: VWBIss
=============================================================================
Copyright Microsoft Corporation 1995.
