开发者

How to use MFC with ATL

I'm trying to write a COM EXE using ATL. I also have a MFC application. Both these applications would be run in local machines. Therefore, I don't need to run these two processes (COM EXE and MFC) separately.

Can I create a single application (process) by combining these two applications ? Is there any possibility that I can embed my MFC code in ATL code, or is there a way to initialize 开发者_开发技巧the COM EXE within my MFC code ?

Appreciate your help and concerns .

Thank you


You can make your code more reusable by moving your ATL objects to a new ATL COM DLL project and make your two exe projects clients of your ATL objects.

If you add an ATL object to a MFC project without ATL support, Visual C++ will prompt you to add ATL support. You can then cancel the wizard without really adding an ATL object, but the ATL support will remain,

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜