Re: Sharing a COM object in a MMF
From: Tim Robinson (tim.at.gaat.freeserve.co.uk_at_invalid.com)
Date: 02/29/04
- Next message: Mode: "Re: 2 problems I'm stumed on."
- Previous message: loquak: "Re: Question about ID3DXMesh"
- In reply to: Ben Ashley: "Re: Sharing a COM object in a MMF"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 29 Feb 2004 11:41:57 -0000
I'm not sure the DirectX interfaces will work cross-process -- there's a lot
of stuff in there (e.g. calls which lock surfaces or buffers) which are
impossible to marshal.
I would recommend putting together a custom COM interface in a
out-of-process server which exposed the required functionality, then hiding
the DirectX stuff deep down inside that.
-- Tim Robinson (MVP, Windows SDK) http://mobius.sourceforge.net/ "Ben Ashley" <no@bloody.way> wrote in message news:%23o5IQhq$DHA.1036@TK2MSFTNGP10.phx.gbl... > Ok well if I was going down this road, I'd make the EXE and out of process > server (create it with the ATL Wizard (EXE)), and have that create and > initialise the D3D Device. I'd then create another COM object which is > creatable by other processes. One of the properties of this would be a > property that returned the D3D Device interface. Other processes can then > create an instance of this object, and obtain the interface. > > I'm not sure how well it would work, but if it has cross-process issues you > could make the object above more complex and simply forward calls to the D3D > Device. > > Watch out for multi-threading issues! > > "Steven" <anonymous@discussions.microsoft.com> wrote in message > news:0E90E257-9BF2-4127-BF85-11803AA79CC0@microsoft.com... > > Ok. > > > > I am trying to inject a D3D device into a existing process and then give > other processes access to this Device through the shared dll (that injects > the Device). > > > > I am sure that their are other complications and issues to deal with (when > injecting a Device), however, this is needed for demonstration purposes, and > I am only interested in achieving the above technical aspect at this point. > > > > I hope this explains what I am trying to do. > > > > Thanks, > > > > Steven > >
- Next message: Mode: "Re: 2 problems I'm stumed on."
- Previous message: loquak: "Re: Question about ID3DXMesh"
- In reply to: Ben Ashley: "Re: Sharing a COM object in a MMF"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|