ATL & WIN32
Please correct me if I made a mistake in this stupid question:
Besides WIN32, we can also use ATL(or the COM thing...) for Windows Programming right? And I have a few enquiries on this topic:
1) Is ATL OOPed or C-based like the confusing WIN32?
2) How different is ATL from WIN32?
3) Is ATL the ".NET" as Microsoft mentioned?
4) Is it suitable/recommended for game programming?
I welcome all comments or advice.
The road may be long, wind may be rough. But with a will at heart, all shall begone. ~savage chant
Tersely:
1. ATL is oop - a set of C++ classes
2. ATL wraps the underlying win32 api
3. ATL is not ".NET"
4. I can''t speak to this
The ATL headers (there are 15 of them) can be found in the src samples that ship with the Platform SDK. If you install the PSDK to the C drive they should end up in this directory:
C:\Program Files\Microsoft Platform SDK\Src\WTL\Include
Zipped up they total 160 Kb.
1. ATL is oop - a set of C++ classes
2. ATL wraps the underlying win32 api
3. ATL is not ".NET"
4. I can''t speak to this
The ATL headers (there are 15 of them) can be found in the src samples that ship with the Platform SDK. If you install the PSDK to the C drive they should end up in this directory:
C:\Program Files\Microsoft Platform SDK\Src\WTL\Include
Zipped up they total 160 Kb.
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
COM is not an alternative to the WIN32 API. COM (Component Object Model) is a model for creating language independent objects (e.g. a COM object can be created using C++ and used by a VB application). COM is a form of OOP.
ATL is a C++ template library created to help speed development of COM objects using C++.
COM, ATL, and .NET are not the same technologies.
It can be used to develop games if you don''t mind the added complexity (They''re easy to use but not as easy to create). The DirectX components are a set of COM objects.
ATL is a C++ template library created to help speed development of COM objects using C++.
COM, ATL, and .NET are not the same technologies.
It can be used to develop games if you don''t mind the added complexity (They''re easy to use but not as easy to create). The DirectX components are a set of COM objects.
// Ryan
LessBread was on to something I didn't think about: the ATL window classes or WTL (Windows Template Library). Which helps developers creating COM objects with ATL add UI elements to their components. WTL does provide an OOP alternative to using the WIN32 API and can be used outside of ATL development.
You'll find some info on MSDN
[edited by - Solo on March 13, 2002 4:26:05 PM]
You'll find some info on MSDN
[edited by - Solo on March 13, 2002 4:26:05 PM]
// Ryan
quote: Original post by savagerx
4) Is it suitable/recommended for game programming?
Yes. I use the ATL CComPtr (and evangelize is excessively) to manage all COM interfaces (it manages ref counting and releases the interface when appropriate).
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
The Newbie asks:
1) Do you think that it is neccessary to learn COM since there are DirectX and OpenGL APIs available?
2) What are the areas in WIN32 that I should pay extra attention to inorder to become a "qualified and functional programmer/ Game programmer"?
Sav
1) Do you think that it is neccessary to learn COM since there are DirectX and OpenGL APIs available?
2) What are the areas in WIN32 that I should pay extra attention to inorder to become a "qualified and functional programmer/ Game programmer"?
Sav
The road may be long, wind may be rough. But with a will at heart, all shall begone. ~savage chant
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement