Re: Direct3D and Unmanaged Host
From: Defiant (jean.darc_at_btinternet.com)
Date: 09/27/04
- Next message: Defiant: "Re: Collisions..."
- Previous message: Chris Hastings: "Collisions..."
- In reply to: Kevin Spencer: "Re: Direct3D and Unmanaged Host"
- Next in thread: Kevin Spencer: "Re: Direct3D and Unmanaged Host"
- Reply: Kevin Spencer: "Re: Direct3D and Unmanaged Host"
- Reply: ZMan: "Re: Direct3D and Unmanaged Host"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Sep 2004 17:29:09 +0100
Having read my original post I realize that perhaps I didn't provide
sufficient details and made too many assumptions of what I am aiming to
accomplish...
What I meant with Direct3D working inside an unmanaged host was:
A C# user control which uses Managed Direct X and is compiled into a Managed
.NET dll is then run inside Internet Explorer (the unmanaged host).
Obviously the machine running the software must have the .NET runtime
installed. The terminology and concepts were taken from the following MSDN
article:
http://msdn.microsoft.com/msdnmag/issues/03/03/WindowsForms/default.aspx
Scroll down to the section entitled "Managed Controls in Unmanaged Hosts"
As you can see Internet Explorer is able to host user controls written
against the .NET framework with certain restrictions.
One of those restrictions, I have discovered, is that you can not use Unsafe
Code.
Now if I create a simple User Control with a button which when clicked
changes the background color then all works well in Internet Explorer.
Whereas if I reference the DirectX assemblies and attempt to use any of the
objects therein the user control fails to run.
I hope I am a little clearer about what I am aiming to achieve.
Thanks
Defiant
"Kevin Spencer" <kspencer@takempis.com> wrote in message
news:%23Xag5WKpEHA.1960@TK2MSFTNGP10.phx.gbl...
> Managed code must be run on the .Net platform. The browser doesn't have
> anything to do with it. You could certainly run a DirectX app in a browser
> by embedding a Windows form in the browser (not sure how easy it would be
> to
> do), but only if the OS has the .Net Platform installed.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> I get paid good money to
> solve puzzles for a living
>
> "Defiant" <jean.darc@btinternet.com> wrote in message
> news:upZ$LQBpEHA.1988@TK2MSFTNGP09.phx.gbl...
>> Is there any way of getting Direct3D to work inside unmanaged host like
>> Internet Explorer?
>> I've included a little demo program, any help would be appreciated.
>>
>> Defiant
>>
>>
>>
>
>
- Next message: Defiant: "Re: Collisions..."
- Previous message: Chris Hastings: "Collisions..."
- In reply to: Kevin Spencer: "Re: Direct3D and Unmanaged Host"
- Next in thread: Kevin Spencer: "Re: Direct3D and Unmanaged Host"
- Reply: Kevin Spencer: "Re: Direct3D and Unmanaged Host"
- Reply: ZMan: "Re: Direct3D and Unmanaged Host"
- Messages sorted by: [ date ] [ thread ]