5
Answers

How Can You Use DirectX in a Webpage?

Photo of andrewwgraff

andrewwgraff

20y
2.1k
1
I am trying to figure out how to put even the simplest DirectX application on a web page. I'm trying to use Tutorial 3 from the DirectX SDK. I am using a UserControl object, however I don't know how to, or if you can, use this object in the same way as they use a Windows Form in the tutorial. After all you can't embed a form object in a webpage can you? I put the Main code from the form in the Initialization funciton for the Control, and got rid of code for Esc to exit and on resize and all that, compiled it as a DLL (Windows Class Library). Still I don't know if there is any sort of message loop for UserControls like there is for Forms, or what I would have to do to use DirectX in a webpage period. Maybe there is a way to embed a form in a webpage, or maybe I have to use a UserControl with a timer object or something. If anyone has any suggestions I would like to hear them. It seems to me that you need to use an application to use DirectX, but a UserControl can't be an Application right? I'm sure someone knows what it is I need to know. By the way, the reason I want to embed a DirectX Application in a webpage is because I have written some code to render 3D bitmaps, and I want to make it my desktop background, silly reason I know but they are awesome bitmaps custom 3D iterative fractal density plots that I've made. I might post the results of this if I can ever get it in a webpage!

Answers (5)

0
Photo of Smart    Lucky
NA 538 474.1k 13y
Yes dear because i am beginner
0
Photo of Vulpes
NA 98.3k 1.5m 13y
Judging by his other threads today, the OP is just practicing doing various things with assemblies :)
0
Photo of Jiteendra Sampathirao
NA 6.9k 1.5m 13y

why are you trying to globalize that .dll. may i know the reason?
0
Photo of Smart    Lucky
NA 538 474.1k 13y
hi
Dear


 Change the directory D to C: and run that command. And then check the assembly folder.... Otherwise check the .Dll file in D drive....

dear but

Library is in d: drive which i have created and how i make it globalize from c Drive....?
0
Photo of Jiteendra Sampathirao
NA 6.9k 1.5m 13y

@Smart lucky: Yes. if it is a simple class library dll why r u trying to deploying it into GAC.

@Suthish: He might using that dll in some other applications like SharePoint etc.
0
Photo of Suthish Nair
NA 31.7k 4.6m 13y
If it is a simple Class Library dll then why you forcefully registering it into GAC?
0
Photo of Jiteendra Sampathirao
NA 6.9k 1.5m 13y
Hi,
Change the directory D to C: and run that command.
And then check the assembly folder....

Otherwise check the .Dll file in D drive....
0
Photo of Smart    Lucky
NA 538 474.1k 13y
hi
 C:\WINDOWS\assembly
yes i am checking it in this folder but the assembly is added in G A C which is not shown here

d\:>c#sharp\sharedfolder\gacutil /i ClassLibrary.dll

i am adding in this way is it correct way...?
it is showing message , successfully but when i am going it the windolw\assembly folder it not showing 
can any one help me ....?
0
Photo of Jiteendra Sampathirao
NA 6.9k 1.5m 13y

Hi,
Global assembly cache location is C:\WINDOWS\assembly. Here your .dll file stores.

Check it....


0
Photo of Suthish Nair
NA 31.7k 4.6m 13y
but not showing the assembly? where? which assembly you trying to add?