RE: [GD-General] Multiple Inheritance and RTTI
Brought to you by:
vexxed72
|
From: Nicolas R. <nic...@fr...> - 2003-02-06 01:55:28
|
Well, I always managed to compile the simplest (and yet most
interesting) part of COM on any compiler I have ever found for ages
(like CW3 on MAC).
struct IUnknown
{
virtual HRESULT QueryInterface(const GUID& id, void** ppOut) =
0;
virtual HRESULT AddRef(void) = 0;
virtual HRESULT Release(void) = 0;
};
Note that appart from the "GUID" and the "HRESULT" (that can be replaced
by virtually anything, though me think the windows declaration is good
enough), there is absolutely NO specific platform thing...
Of course, you wont have the threading model, the CoCreateInstance stuf,
and so on... But I really feel that for a game that should not be too
annoying, especially if you already have a set of factories for your
entities, a CreateInstance class is not too difficult to implement.
Nicolas Romantzoff.
-----Original Message-----
From: gam...@li...
[mailto:gam...@li...] On Behalf Of
phi...@pl...
Except for the cross platform thing.
Cheers,
Phil
|