开发者

mfc42u.dll Error while migrating from VC6 to VS2005

开发者 https://www.devze.com 2023-01-13 18:01 出处:网络
I have migrated my VC6 application to VS2005, all my code got compiled with some changes and there is no compilation error.

I have migrated my VC6 application to VS2005, all my code got compiled with some changes and there is no compilation error. But I am getting a linking error LNK1104. LINK : fatal error LNK1104: cannot open file 'mfc42u.lib'

I have imported the dsw of VC6 in Visual Studio 20开发者_C百科05, not sure from where it is still referring to the mfc42u.lib (I assume its library of VC6).

Please guide me how to get rid of this error.


This library is referred from Linker section of your project settings, specifically "Additional libraries" or something like this (do not remember the name of the setting exactly) - there are libraries needed to be linked with listed there. So just replace the mfc42u.lib with mfc8u.lib or whatever is the relevant version of mfc installed with your VS distribution there.


probably your linker settings aren't set properly. Go to Project Settings->Configuration->General->Use MFC Libraries and make sure the value is set to 'Use MFC in a shared library'. If you are able to build properly, then you can change it back to 'Static' to use the new library.

0

精彩评论

暂无评论...
验证码 换一张
取 消