Hi all!

I have read lots of posts about this subject.
But I would like somebody help.

I created a WCE MFC AppWizzard (dll) project and inserted a GetSerialNumber
function.
I compiled the project, exported the dll and registrered it.
Using vbscript, the code works fine. But when using javascript, I am
receiving the message "Automation server cannot create object".
vbscript code:
set objMsg = CreateObject("TesteCOM.TesteDLL") strMsg =
objMsg.GetSerialNumber()

javascript code:
var objMsg = new ActiveXObject("TesteCOM.TesteDLL"); var strMsg =
objMsg.GetSerialNumber();

Can anybody tell me what am I doing wrong? Why the code works fine in
vbscript but not in javascript?
Considering it is not a visible control, do I need to implement the
IObjectSafety interface?
If so, how should I do it?

Thank you,

Anderson