Problem: the error message "mfc42u. lib" cannot be found in the VC prompt (cannot open file "mfc42u. lib ")
Note:
Link: Fatal error lnk1104: cannot open file "mfc42u. lib" indicates that Unicode version is not installed when Vc is installed.
Solution summary:
Method 1:
Copy the files "mfc42u. lib", "mfc42ud. lib", "mfcs42u. lib", and "mfcs42ud. lib" from the installation disk of the VC to support Unicode.CodeUnder "VC installation directory/vc98/mfc/lib", you do not need to reinstall it :).
Method 2:
Select a non-Unicode version in build for compilation
Method 3:
In the set active configuation... sub-menu under the build menu, set the current configuration to Win32 release or Win32 Debug. Do not set it to Unicode release or Unicode debug.
This problem occurs when your compilation configuration is set to Unicode, while VC does not install the Unicode library by default during installation, so mfc42u. lib or mfc42u. dll cannot be found.
Method 4: reinstall VC and select Full Install