I've been able to create a small activex control, but it requires the dll to be registered on the client (using regasm).
How can i avoid this registration problem?
I'm attempting to write an activex control that is delivered over the web (to IE browsers) that will access the clients webcam (using directshow).
Here's my simple control:
using System;
using System.Runtime.InteropServices;
namespace HelloNS
{
public interface IHello
{
string Message();
}
[ClassInterface(ClassInterfaceType.AutoDual)]
public class Hello : IHello {
public string Message()
{
return "hello";
}
}
}
And here's my viewer:
<html>
<head>
<script language="javascript">
var x = new ActiveXObject("HelloNS.Hello");
alert(x.Message());
</script>
</head>
<body>
</body>
</html>
I'm currently reading this on msdn: http://msdn.microsoft.com/en-us/library/aa751970(VS.85).aspx
If i figure it out i'll post the results.