Do I have to use ATL ??
-
Hello all, I'm new here and newbie in COM. I have to create a COM server. In this COM server, I exposed many interfaces to manage a specific database. I want my COM server to be used from a C++ client, VB client and ASP client. My interfaces do only search, comparison and file reading. Do I need to use the ATL? What are the benefit of using the ATL in this case? Thanks in advance, Regards, Bruno
-
Hello all, I'm new here and newbie in COM. I have to create a COM server. In this COM server, I exposed many interfaces to manage a specific database. I want my COM server to be used from a C++ client, VB client and ASP client. My interfaces do only search, comparison and file reading. Do I need to use the ATL? What are the benefit of using the ATL in this case? Thanks in advance, Regards, Bruno
If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? If you are a new to COM, I suggest you get a copy of Don Box's Essential COM which will help you understand how it works. ATL provides a lot of the boilerplate code which saves a lot of time. Michael :-)
-
If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? If you are a new to COM, I suggest you get a copy of Don Box's Essential COM which will help you understand how it works. ATL provides a lot of the boilerplate code which saves a lot of time. Michael :-)
Michael P Butler wrote: If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? I have considered to do all the stuff my self because I hate to use the MFC and think that ATL is kind of MFC related and it's only for graphical COM. As I don't know if I'm right or not, I ask you if it is. From what I understand from your post, I'm thinking that I was totally wrong. Bruno
-
Michael P Butler wrote: If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? I have considered to do all the stuff my self because I hate to use the MFC and think that ATL is kind of MFC related and it's only for graphical COM. As I don't know if I'm right or not, I ask you if it is. From what I understand from your post, I'm thinking that I was totally wrong. Bruno
Sorry but you are wrong. ATL is not like MFC, in fact, in my opinion, MFC 7 has taken a lot of tricks from ATL. ATL is very helpful in putting together COM components, graphical or otherwise. After reading Essentila COM you may also want to look at Essential ATL.
-
Sorry but you are wrong. ATL is not like MFC, in fact, in my opinion, MFC 7 has taken a lot of tricks from ATL. ATL is very helpful in putting together COM components, graphical or otherwise. After reading Essentila COM you may also want to look at Essential ATL.
You can make a lot of things with ATL, from common controls to simple com dll. I use all day ATL, for make com components.... Best Regards... Carlos Antollini.
-
Michael P Butler wrote: If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? I have considered to do all the stuff my self because I hate to use the MFC and think that ATL is kind of MFC related and it's only for graphical COM. As I don't know if I'm right or not, I ask you if it is. From what I understand from your post, I'm thinking that I was totally wrong. Bruno
ATL is nothing like MFC. ATL was written to make life easier for COM programmers. The only gui stuff in ATL was added to make writing ActiveX controls easier. With ATL you can pretty much create a simple COM object like you seem to need just by running the wizard. As somebody who learnt COM the hard way, I really do suggest that you use ATL rather than having to write everything from scratch. Michael :-)
-
Sorry but you are wrong. ATL is not like MFC, in fact, in my opinion, MFC 7 has taken a lot of tricks from ATL. ATL is very helpful in putting together COM components, graphical or otherwise. After reading Essentila COM you may also want to look at Essential ATL.