G
Guest
I created ActiveX as following:
namespace BmpActiveXNET
{
public interface DesktopScreen
{
string getDesktopScreen();
}
[ClassInterface(ClassInterfaceType.AutoDual)]
public class BmpActiveX
esktopScreen
{
public string getDesktopScreen()
{
//Capture the client screen
Bitmap bmp = BmpActiveXNET.CaptureScreen.GetDesktopImage();
//Get the Image Bytes
byte []BitmapBytes = GetBitmapBytes(bmp);
//Return Bytes as String
return GetBytesAsString(BitmapBytes);
}
}
}
and register it using
regasm BmpActiveXNET.dll /tlb:CompNet.dll /codebase
when try to create object from javascript
var o = new ActiveXObject("BmpActiveXNET.BmpActiveX");
error generated (automation server can't create object )
why this happened? whats wrong with what I did?
namespace BmpActiveXNET
{
public interface DesktopScreen
{
string getDesktopScreen();
}
[ClassInterface(ClassInterfaceType.AutoDual)]
public class BmpActiveX

{
public string getDesktopScreen()
{
//Capture the client screen
Bitmap bmp = BmpActiveXNET.CaptureScreen.GetDesktopImage();
//Get the Image Bytes
byte []BitmapBytes = GetBitmapBytes(bmp);
//Return Bytes as String
return GetBytesAsString(BitmapBytes);
}
}
}
and register it using
regasm BmpActiveXNET.dll /tlb:CompNet.dll /codebase
when try to create object from javascript
var o = new ActiveXObject("BmpActiveXNET.BmpActiveX");
error generated (automation server can't create object )
why this happened? whats wrong with what I did?