What is COM (Common Object Model) ?
What is COM (Common Object Model) ?
Well assuming you really meant Component Object Model (since this is windows)
http://whatis.techtarget.com/definit...211823,00.html
May I suggest next time using google
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Originally Posted by Salem
whops!! you're right,it was Component Object Model
Is it true that,in order to write a working non-.NET DirectX application,it is necessary to register a COM object into the registry??
No. Directx dose have a COM interface though.Originally Posted by Lionel
Originally Posted by Quantum1024
If i'd want to write a game that
uses DirectDraw,DirectSound and Direct3D i'm not compelled to
register GUIDs in the registry,is it right?
Last edited by Lionel; 05-16-2005 at 07:08 AM.
Thats right. You are not trying to expose a COM object for other applications to use you are just calling meathods from the directx interface.Originally Posted by Lionel
DirectX uses COM and has all the basic features of COM like the IUnknown Interface. It uses Release, QueryInterface, and all that other stuff but you don't have to deal with it if you don't want to. Here is code to create you DDirectDraw Object.
You don't even have to make a call to CoInitialize() or CoCreateInstance().Code:LPDIRECTDRAW7 lpdd7 = NULL; DirectDrawCreateEx(NULL, (void**)&lpdd7, ID_IDirectDraw7, NULL);
Then you can use your new interface like this:
And Ta Da, you have a fullscreen application with a resolution of 640 by 480 with 32 bits of color.Code:lpdd7->SetCooperativeLevel(hwnd, DDSCL_FULLSCREEN | DDSCL_ALLOWMODEX | DDSCL_EXCLUSIVE | DDSCL_ALLOWREBOOT); lpdd7->SetDisplayMode(640, 480, 32, 0, 0);
Don't quote me on that... ...seriously
thx you're so kind!