Re: Direct3D and Unmanaged Host
From: Defiant (jean.darc_at_btinternet.com)
Date: 09/27/04
- Previous message: Michel Walsh: "Re: Fading textured vertices"
- 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"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Sep 2004 21:13:19 +0100
A C# Web User Control is an ASP.Net UI element that renders HTML, this is
not what I am doing.
A C# User Control on the other hand is a Window Forms UI element, which can
be hosted similar to an ActiveX control, inside IE using the <object
classid="http:blah.dll#namespace.controlclass"> tag.
Oh and nothing is impossible... a Web User Control could use DirectX coupled
with a javascript refresh to render a 3d scene, but lets no go there unless
several gallons of booze are involved :)
"Kevin Spencer" <kspencer@takempis.com> wrote in message
news:%23WlS6yLpEHA.648@tk2msftngp13.phx.gbl...
> 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
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>
>
- Previous message: Michel Walsh: "Re: Fading textured vertices"
- 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"
- Messages sorted by: [ date ] [ thread ]