Re: Direct3D and Unmanaged Host
From: Kevin Spencer (kspencer_at_takempis.com)
Date: 09/27/04
- Next message: James Black: "re: D3DERR_INVALIDCALL when calling device.Transform.View in summer 2004 update"
- Previous message: Michel Walsh: "Re: Displaying DirextX in a panel??"
- In reply to: Defiant: "Re: Direct3D and Unmanaged Host"
- Next in thread: Defiant: "Re: Direct3D and Unmanaged Host"
- Reply: Defiant: "Re: Direct3D and Unmanaged Host"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Sep 2004 14:00:59 -0400
Okay, a C# User Control is an ASP.Net UI element that renders HTML. So, now
I'm REALLY confused! You don't want to render HTML; you want to display a
DirectX app. This can only be done in a Windows Form, which you could
theoretically host in IE (can't be sure absolutely, but I can't see why not
offhand - of course, we ARE talking about DirectX here).
-- 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:ehY4h8KpEHA.2340@TK2MSFTNGP11.phx.gbl... > 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: James Black: "re: D3DERR_INVALIDCALL when calling device.Transform.View in summer 2004 update"
- Previous message: Michel Walsh: "Re: Displaying DirextX in a panel??"
- In reply to: Defiant: "Re: Direct3D and Unmanaged Host"
- Next in thread: Defiant: "Re: Direct3D and Unmanaged Host"
- Reply: Defiant: "Re: Direct3D and Unmanaged Host"
- Messages sorted by: [ date ] [ thread ]