What is COM (Common Object Model) ?
Printable View
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
Quote:
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.Quote:
Originally Posted by Lionel
Quote:
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?
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.Quote:
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);
thx you're so kind!