What's the diff between ALT and COM
-
Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus
-
Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus
ATL is a template library that makes it heaps easier to write COM components. Christian Graus - Microsoft MVP - C++
-
Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus
Or, in other words than Christian says, the COM is a technology, while the ATL is a tool. COM defines some rules (like that objects are refcounted etc.) while ATL helps you to implement these rules, saving you a time by providing helpers for keeping the rules etc. compare: creating the com object without ATL:
IMyInterface* ipNewObject = NULL; HRESULT hr = CoCreateInstance( clsid, NULL, CLSCTX_INPROC_SERVER, &IID_IMyInterface, &ipNewObject ); if( ipNewObject ) { ipNewObject->SomeFunction(); ipNewObject->Release(); } return;
with ATL:CComPtr<IMyInterface> spNewObject; spNewObject.CreateInstance("objectId"); if( spNewObject ) spNewObject->SomeFunction(); return;
-
Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus
ATL is not only a tool for building COM servers and COM clients, but is also a tiny GUI toolkit. WTL extends the GUI toolkit, making it complete and suitable for application programming. Good music: In my rosary[^]
-
Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus
Axter wrote: Cans someone please tell me what is the difference between ALT and COM. yeap many!... COM is just a protocol set for making language independent component and ATL is one technique that use to create com objects.......
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV