Jump to content

Embedding games onto my website

- - - - -

  • Please log in to reply
6 replies to this topic

#1
madskillsmonk

madskillsmonk

    Newbie

  • Members
  • PipPip
  • 11 posts
Hi, I programmed a game in C#, with visual studios. My friend programmed a website in HTML/CSS using dreamweaver. Now i am wondering if it is possible to upload my game onto his website, without having to do much changing to my code, due to the fact that i am a beginner programmer. If anyone has any suggestions or advice, please let me know! Thanks!

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
If your application is an executable (.exe) you can only upload it to his server and link to it for download, there is no way to embed a C# application other than with ASP.NET, and even then it must be basic. Embeddable containers include ActiveX, Flash, Java and a few others.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
madskillsmonk

madskillsmonk

    Newbie

  • Members
  • PipPip
  • 11 posts
I was told by someone that it is possible to put my game into an active X control.... not sure what that is or how to do it though, or even if it will work. Does anyone know about that?

#4
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
It should not be all too difficult, here is an example of getting an ActiveX control running: Writing an ActiveX control in C#

Note the downfalls:

  • It is not an application, only a single form, so you will need to modify the code a bit
  • ActiveX is not supported natively on Firefox, Opera or other operating systems than Windows. IE may ignore the control depending on security settings.

Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#5
madskillsmonk

madskillsmonk

    Newbie

  • Members
  • PipPip
  • 11 posts
so according to that website, i have to make a new class in my c# game. and then add the code written for me into that class.
I also need to add the javascript to the website?
but i dont understand what to do with the 3 lines of code that are separated by comments in the middle of the page? (sorry im new to programming, and know little to nothing about websites/servers.)
thank you!

#6
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
I know much about it as you do, it may be wise to look up some documentation on creating ActiveX controls in C#, there should be a few tutorials on the web.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#7
madskillsmonk

madskillsmonk

    Newbie

  • Members
  • PipPip
  • 11 posts
alright thanks alot... huge help!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users