Re: Use MFC from non-MFC application



"Notre Poubelle" <notre_poubelle@xxxxxxxxxxxxx> wrote in message
news:F4581DC4-EDB6-487D-95C3-

I didn't bring Visual Studio into the discussion initially, because I
believe my question is a little more general than that; if I can get MFC
support working in a DLL that is used by an application (EXE) that doesn't
have MFC support, then I expect I could get it working in Visual Studio.

It seems all you are asking is for a non-MFC module to use another module
that uses MFC. If thats the case, as David pointed out, you can use a MFC
Regular DLL (instead of a MFC Extension DLL). This will make your DLL as a
stand alone module that can be used by other modules. If your existing
functionality is in a MFC Extension DLL, you will need to either convert it
to a Regular DLL (but typically thats almost prohibitive) or write a wrapper
MFC Regular DLL.

--
Ajay Kalra [MVP - VC++]
ajaykalra@xxxxxxxxx


.



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)