Hi everyone,
I've got a problem here, if anyone knows how to solve this problem please reply.
My web application is written in asp, i have already connect the weighing machine to my comm port. I have written a dll which consist of an mscomm control to connect to the weighing scale in order to get the weight.
In my asp page, i used vbscript to call the dll to access my get weight function to retrieve the weight. However, i kept getting activeX cannot create object error. I have already tested the codes and the connection on another pc running on Win NT, it was running fine but when i run it on another pc running on win XP the error occurs.
Is it because i requires some vb runtime dll or some ocx files are missing? I have already package the dll project and install it in the win XP machine, it still could work..Have anyone come across this problem?
below is my vbscript...
<Script Language=VBScript>
Dim objWeightSvr
Set objWeightSvr = CreateObject("ComputeChargeServer1.CComputeCharge"'calling my class
Sub tmrTimer_Timer
intWeight = objWeightSvr.GetWeight()
frmScreen1.txtWeight.value = intWeight
End sub
</Script>
I've got a problem here, if anyone knows how to solve this problem please reply.
My web application is written in asp, i have already connect the weighing machine to my comm port. I have written a dll which consist of an mscomm control to connect to the weighing scale in order to get the weight.
In my asp page, i used vbscript to call the dll to access my get weight function to retrieve the weight. However, i kept getting activeX cannot create object error. I have already tested the codes and the connection on another pc running on Win NT, it was running fine but when i run it on another pc running on win XP the error occurs.
Is it because i requires some vb runtime dll or some ocx files are missing? I have already package the dll project and install it in the win XP machine, it still could work..Have anyone come across this problem?
below is my vbscript...
<Script Language=VBScript>
Dim objWeightSvr
Set objWeightSvr = CreateObject("ComputeChargeServer1.CComputeCharge"'calling my class
Sub tmrTimer_Timer
intWeight = objWeightSvr.GetWeight()
frmScreen1.txtWeight.value = intWeight
End sub
</Script>