Board index » Visual Studio » How to use MFC 4.2 with Visual Studio .Net
|
lbunchenduracarecom
|
|
lbunchenduracarecom
|
How to use MFC 4.2 with Visual Studio .Net
Visual Studio255
Hi! I have recently started using Visual Studio .Net in place of Visual Studio 6.0. My application is an Active X control written in C++ with MFC 4.2. Is there a way I can force Visual Studio to use MFC 4.2 and not MFC 7.0, since the application will be deployed mostly on systems with MFC 4.2. I know I can use "static linking" but that will make the application large and I am still adamant on using 4.2 libraries rather than 7.0 to be safe. Any suggestions. Thanks in advance for your help. Sanjay - |
| Joseph
Registered User |
Wed Oct 01 09:26:36 CDT 2003
Re:How to use MFC 4.2 with Visual Studio .Net
This question has started coming up a lot. The answer is simple: revert to VS6. It is
absolutely silly to think that an MFC library designed for one compiler will work with another. Microsoft got away with it for years by a sneaky renaming: making MFC42-for-VS5 (and VS5 programs would not work with MFC42-for-VS4.2), MFC42-for-VS6 (and VS6 programs would not work with earlier versions of MFC42), and the assorted service packs also made forward-compatible but not backward-compatible changes (that is, programs from earlier compilers worked with newer MFC42 versions, but programs from newer compilers would not necessarily work with older versions of MFC42). VS7 is a significant departure from the old style MFC (e.g., CString is now a completely different implementation to allow for Unicode CStrings) and MFC42 has been abandoned. MFC70 is what is delivered, and MFC70 is what you will use. Don't trust static linking. That MFC70 requires other DLLs, which you are supposed to also deploy, be consistent with MFC70 and each other. Just abandon the myth (it has been a myth for well over a decade) that "copy == install" and use a proper installer! Then there is absolutely NO problem "deploying" VS .NET programs on any platform. All you have to do to make it possible is do the job RIGHT. joe On Tue, 30 Sep 2003 11:05:21 -0400, "news.microsoft.com" <hidden@fromyou.org>wrote: QuoteHi! I have recently started using Visual Studio .Net in place of Visual email: newcomer@flounder.com Web: www.flounder.com">www.flounder.com MVP Tips: www.flounder.com/mvp_tips.htm">www.flounder.com/mvp_tips.htm - |
| Sanj
Registered User |
Wed Oct 01 10:01:08 CDT 2003
Re:How to use MFC 4.2 with Visual Studio .Net
Desperately looking for some answers. Anyone has an idea to the following
problem? Sanjay "news.microsoft.com" <hidden@fromyou.org>wrote in message QuoteHi! I have recently started using Visual Studio .Net in place of Visual - |
| Joseph
Registered User |
Wed Oct 01 22:51:40 CDT 2003
Re:How to use MFC 4.2 with Visual Studio .Net
I just gave you the answers. Specifically, it is impossible.
joe On Wed, 1 Oct 2003 11:01:08 -0400, "Sanj" <hidden@fromyou.org>wrote: QuoteDesperately looking for some answers. Anyone has an idea to the following email: newcomer@flounder.com Web: www.flounder.com">www.flounder.com MVP Tips: www.flounder.com/mvp_tips.htm">www.flounder.com/mvp_tips.htm - |
| Sanj
Registered User |
Thu Oct 02 14:48:08 CDT 2003
Re:How to use MFC 4.2 with Visual Studio .Net
Thanks for your answer (hadnt got it before). I am already back to using
Visual Studio. Sanjay "Joseph M. Newcomer" <newcomer@flounder.com>wrote in message QuoteI just gave you the answers. Specifically, it is impossible. - |
