Hi, I having some problem here ,
i hava a Javascript COMserver code :
<script language="JScript">
var ComServer;
function CreateSQLAccServer () {
ComServer = new ActiveXObject('SQLAcc.BizApp');
}
function Login () {
CreateSQLAccServer ();
if (! ComServer.IsLogin) {
try {
ComServer.Login('ADMIN', 'ADMIN', 'C:\\Program Files\\eStream\\SQLAccounting\\DEFAULT.DCF', 'ACC-0983.FDB');
if (ComServer.IsLogin) {
alert ("Connected");
}
} catch (e) {
alert(e.message);
}
}
}
</script>
but, now i would like to move the javascript code into java application base system
I try :
ActiveXComponent Comserver = new ActiveXComponent("SQLAcc.BizApp");
but it having error and continue step how i do the checking see the Comserver is login or not?