Re: newbie question: Can I modify MFC source code?




"asm23" <asmwarrior@xxxxxxxxx> wrote in message news:g9e80b$75a$1@xxxxxxxxxxx

Hi, everyone, suddenly, a strange question came to my mind:
If for some reasons or own desire.....
Can I modify the MFC source code, and rebuild the MFC***.DLL and libs?
It seems no one have talked this issue on this news groups.
Any suggestion? Thank you.

To paraphrase Joe: the quality control/quality assurance issues if you do this are enormous. i.e. "yes but it is a really bad idea".

A while back, there was one issue which would have required this. I was looking at making a program run under Windows 98 and supporting Unicode. Microsoft had "sort of" provided a way to do this with the "Microsoft Layer for Unicode" - see eg http://www.microsoft.com/globaldev/handson/dev/mslu_announce.mspx

Buried beneath the smallest of the small print was however a small problem: it doesn't work with MFC DLL's; only with statically linked MFC. I have a program which is an exe and a collection of DLLs, a number of which are MFC extension DLLs. Static linking is not an option.

Going into it a bit further, I learned that it could be made to work by making small changes to the MFC DLLs and recompiling, but that Microsoft had no plans to supply the DLLs in a form containing those small changes (and I guess technically it might be breach of copyright).

So I thought "this sounds like a really bad idea" and the day my program supports Unicode (the next release) will be the day it stops supporting Windows 98.

Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm

.



Relevant Pages

  • Re: CAsyncsocket Attach and detach
    ... DLLs (of which the MFC and CRT runtimes are two of a couple dozen) and makes sure they are ... You can create installer files in VS.NET so there's no cost for a third-party ... I use CAsyncSocket to accept in OnAccept, detach the socket and set it ...
    (microsoft.public.vc.mfc)
  • Re: Operator new failing in windows after several days of operation
    ... Some DLL's are MFC extension DLLs, ... TotSize PctPctUsage ... The working set size at ...
    (microsoft.public.vc.language)
  • Re: MFC static linking and VS 2005 Standard?
    ... As I said, we have projects with large numbers of MFC DLLs, built ... MFC extension DLL built independently of the delivered product is untrustworthy (I first ... >to libraries that the user uses that use MFC. ...
    (microsoft.public.vc.mfc)
  • Re: Loading Language Resource DLLs
    ... with MFC dlls I use statically linked MFC. ... AfxSetResourceHandle to localize my apps. ... It is also possible that each resource file is in a different language ...
    (microsoft.public.vc.mfc)
  • Re: Assertion in CWinApp::CWinApp - AfxGetThread() == NULL
    ... linking when multiple MFC DLLs are involved. ... MFC runtime, and is one of the reasons I don't ever use static linking. ...
    (microsoft.public.vc.mfc)

Loading