Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,102 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,670 people online right now. Registration is fast and FREE... Join Now!




ActiveX Control for a Game

 
Reply to this topicStart new topic

ActiveX Control for a Game

beef
30 Nov, 2007 - 02:45 PM
Post #1

D.I.C Head
Group Icon

Joined: 2 Nov, 2006
Posts: 128


My Contributions
I'm trying to figure out how to convert a game I'm working on into an ActiveX control so it can be played online in a browser. This is the first time I've dealt with ActiveX so I'm a little lost. I've done a lot of searching around and followed a few tutorials but nothing that really works well. Does anyone here work with ActiveX enough to give me a few starter tips?

What I've managed to pull off is writing a little c# test code and compiling that with csc.exe to produce a dll. I registered the dll with regasm.exe and have been able to call the control on a web page via javascript.

The big things I'm having trouble with right now are:

When I make changes to the code to try to test things I can't overwrite the old dll, I get an error saying it is in use.

I'm not sure how to get a canvas to draw to on the webpage. I thought about passing in an empty image via javascript when I make the call to launch the control, but that doesn't really seem like a good way to do it.

Any help you can give me would be greatly appreciated.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 08:59PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month