I created ActiveX as following:
namespace BmpActiveXNET
{
public interface DesktopScreen
{
string getDesktopScree n();
}
[ClassInterface( ClassInterfaceT ype.AutoDual)]
public class BmpActiveX:Desk topScreen
{
public string getDesktopScree n()
{
//Capture the client screen
Bitmap bmp = BmpActiveXNET.C aptureScreen.Ge tDesktopImage() ;
//Get the Image Bytes
byte []BitmapBytes = GetBitmapBytes( bmp);
//Return Bytes as String
return GetBytesAsStrin g(BitmapBytes);
}
}
}
and register it using
regasm BmpActiveXNET.d ll /tlb:CompNet.dll /codebase
when try to create object from javascript
var o = new ActiveXObject(" BmpActiveXNET.B mpActiveX");
error generated (automation server can't create object )
why this happened? whats wrong with what I did?
namespace BmpActiveXNET
{
public interface DesktopScreen
{
string getDesktopScree n();
}
[ClassInterface( ClassInterfaceT ype.AutoDual)]
public class BmpActiveX:Desk topScreen
{
public string getDesktopScree n()
{
//Capture the client screen
Bitmap bmp = BmpActiveXNET.C aptureScreen.Ge tDesktopImage() ;
//Get the Image Bytes
byte []BitmapBytes = GetBitmapBytes( bmp);
//Return Bytes as String
return GetBytesAsStrin g(BitmapBytes);
}
}
}
and register it using
regasm BmpActiveXNET.d ll /tlb:CompNet.dll /codebase
when try to create object from javascript
var o = new ActiveXObject(" BmpActiveXNET.B mpActiveX");
error generated (automation server can't create object )
why this happened? whats wrong with what I did?
Comment