Re: Sharing a COM object in a MMF

From: Ben Ashley (no_at_bloody.way)
Date: 02/29/04


Date: Sun, 29 Feb 2004 09:42:12 -0000

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



Relevant Pages

  • Re: Sharing a COM object in a MMF
    ... server (create it with the ATL Wizard (EXE)), ... property that returned the D3D Device interface. ... > I am trying to inject a D3D device into a existing process and then give ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Notice concerning fast-track of uk.current-events.bird-flu
    ... 'Chris Croughton as Control' wrote: ... server so I can't inject the official message crossposted there. ... Surprising, as they used to be quite quick. ...
    (uk.net.news.config)
  • Re: When was the last time...
    ... Its date was carefully set to one minute past midnight BST on April 1st. ... it would not have appeared on any server other than my own until ... Because I inject directly to Gradwell the posts get propagated ... (Being Control and fiddling with those scripts has corrupted me -- I ...
    (uk.net.news.config)
  • Re: Java EE - Entity Manager always says null
    ... The only thing that spring immediately to mind is that your application ... This should tell the application server to inject the persistent unit ...
    (comp.lang.java.programmer)

Loading