MFC/DCOM Application Questions

Tech-Archive recommends: Speed Up your PC by fixing your registry



I currently have a DCOM application running under CE. The project was
created as a "WCE ATL COM AppWizard" (as an executable).

I now have a need to use MFC and would like to know if its possible to
create a MFC project that suports DCOM. It appears that I can create a
"WCE MFC AppWizard" and then add an MFC class that supports automation.
I get an error at this point because the class wizard is looking for
an .odl file. If I manually create an ODL file and place
//{{AFX_APPEND_ODL}} in the file, I don't get the error. After getting
to this point I have the following questions:

1.) Is this truly going to be a DCOM application?

2.) What about the proxy/stub stuff that you get when you do this in
ATL?

3.) Is there more that needs to be added to the .odl file?

4.) Is there a better way?

I also have found that I can add an ATL class to an MFC project. This
basically leaves me with the same questions.

.



Relevant Pages

  • Re: Windowless ActiveX Component?
    ... and the [ATL COM AppWizard]? ... Yes for ATL. ... For MFC - I believe so, but you may want to ask in ... a script can call, and this method would show your own property pages. ...
    (microsoft.public.vc.atl)
  • Re: Future?
    ... > What is the future of MFC, ATL, COM, DCOM and ActiveX? ...
    (microsoft.public.vc.language)
  • RE: Intellisense showing ATL instead of MFC
    ... I understood you notice some VS IDE Intelligence always show the ATL ... It sounds you are using ATL/MFC Shared Classes ... ATL and MFC application. ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.ide)
  • Re: COM dll resources
    ... resources named via strings - it requires numeric IDs. ... to both frameworks - ATL and MFC - and stored separately. ... This time I derived it from the MFC class CDialog ... >> Then add resource string to this DLL and have a method which loads this ...
    (microsoft.public.vc.atl)
  • Re: Queryinterface then Release fails
    ... parent or factory object) will release your interface. ... and finally you release main IDirectDraw ... I would suggest you to really use ATL in your context. ... (Note that you can also use these ATL helper classes also in MFC.) ...
    (microsoft.public.vc.mfc)