Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access weight from weighing maching using mscomm

Status
Not open for further replies.

Jacinth

IS-IT--Management
Feb 17, 2003
1
CA
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(&quot;ComputeChargeServer1.CComputeCharge&quot;)'calling my class

Sub tmrTimer_Timer

intWeight = objWeightSvr.GetWeight()
frmScreen1.txtWeight.value = intWeight

End sub

</Script>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top