|
|
|
MFC Dll
Started by danvilnoiu at 12-14-2005 2:19 PM. Topic has 2 replies.
|
|
12-14-2005, 2:19 PM
|
danvilnoiu
Joined on 12-14-2005
Posts 4
|
MFC Dll
|
|
|
|
|
|
Hello everybody,
I am new on this forum/site.
Can somebody help me with few responses for my questions?
So, why is so hard in VC++ to link a MFC DLL to an application, why I couldn’t access the MFC DLL like a class or like a Com component in VB, I really don’t understand why is so complicate?
I work in MFC few projects but I build just exe not DLL or COM/ATL.
The second problem is about COM, how I can write a COM component in VC++, is mandatory to use ATL to build a COM component.
I saw yesterday on Microsoft site that ATL is now at 7.0 versions, they will still continue to develop this technology in the future, or they will close it like MFC?
Thank you,
Dan
|
|
|
|
|
Report
|
|
|
|
12-14-2005, 2:30 PM
|
Muthu
Joined on 06-18-2005
Posts 10
|
|
|
So, why is so hard in VC++ to link a
MFC DLL to an application, why I couldn’t access the MFC DLL like a
class or like a Com component in VB, I really don’t understand why is
so complicate?
I work in MFC few projects but I build just exe not DLL or COM/ATL.
- Hmm. You are right. Writing a DLL & using it in VC++ is such a
nightmare. This is probably because of the way MS chose. They tried
building this around C++ and created 1000s of classes. Also C++
programs are popular for memory leaks.
The second problem is about COM, how I can write a COM component in VC++, is mandatory to use ATL to build a COM component.
- No. You can write it without ATL, but it is too complicated. The
basic requirement is to derive your class from either IUnknown or
IDispatch and support a few methods. Then you can use this component
anywhere.
I saw yesterday on Microsoft site
that ATL is now at 7.0 versions, they will still continue to develop
this technology in the future, or they will close it like MFC?
- This I don't know. Probably this could be given lesser preference over the webservices technology MS is proposing.
Muthu
|
|
|
|
|
Report
|
|
|
|
12-14-2005, 3:25 PM
|
danvilnoiu
Joined on 12-14-2005
Posts 4
|
|
|
|
Thank you for your time.
I have designed few small components in ATL but it is not easy to build something in it.
If I will choose C++ for my new project then ATL is the only one technology offered by Microsoft to build a large project for a moment?
Please let me know, the huge projects witch are developed in IBM or Big Companies and are written in C++ use MFC or ATL?
Dan
|
|
|
|
|
Report
|
|
|
|
|
Codersource.Net » Programming » C++ Programming » MFC Dll
|
|
| |
|