Re: newbie question: Can I modify MFC source code?
Yes, but it is a Really Bad Idea.
According to the specs, you can do this but you must not call the resulting DLL anything
that resembles a standard MFC DLL. But now you have to make sure your changes track all
releases and bug fixes in MFC and redistribute your DLL with every new MFC release.
As far as I can tell, there is Always An Easier Way To Deal With This
joe
On Sun, 31 Aug 2008 21:54:50 +0800, asm23 <asmwarrior@xxxxxxxxx> wrote:
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.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web:
http://www.flounder.com
MVP Tips:
http://www.flounder.com/mvp_tips.htm
.
Relevant Pages
- Re: Simple Input In a MFC application
... other MFC programmers have followed parallel lines to augment the MFC in a ... either distributing an extra dll or having to include resources in calling ... which is why I'd use a DLL ... Place an edit control on the dialog ... (microsoft.public.vc.mfc) - Re: Soft Input Panel SIP
... is without MFC support. ... I tried to setup a new projekt Win32 Smart Device Projekt -- DLL add ... // DllGetClassObject - Exported function called to get pointer to ... STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv) { ... (microsoft.public.windowsce.app.development) - Re: Soft Input Panel SIP
... It looks like you are trying to create a dll with MFC statically linked. ... If you are you should start with the MFC wizard and create an "MFC DLL" project, instead of trying to paste MFC into a working non-MFC project. ... STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv) { ... IsEqualIID ) { ... (microsoft.public.windowsce.app.development) - Re: Soft Input Panel SIP
... Does your device have the MFC DLL installed? ... STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv) { ... IsEqualIID ) { ... (microsoft.public.windowsce.app.development) - Re: heap shared with DLL
... You may be able to make your own determination as you should have access to MFC source to analyze. ... It looks like theese MFC versions used there own allocators. ... In any case, in WinNT/2K/XP and in WinCE heaps are process-owned, and the heap manger (not the EXE or DLL) maintains alloc/free states of blocks. ... (microsoft.public.windowsce.embedded) |
|