|
Posted by Steve on 04/25/07 14:46
| Looks very much like an activex exe, or activex document exe Steve, in
fact
| the later includes the form by default.
| Thanks for that.
that's because the same code works works *any* way you compile it. however
for use in php, he'll need to compile the project as a standard dll (which
he'll need to register on his server if he just copies over...installing it
will do that for him if he goes that route...regsvr32 -i componentName).
| The OP may be able to work this out if he is familiar with say VB6.
i assumed vb6 (or previous) because he uses the control. if .net, there's
already a serial port namespace he can use to create a com dll (depreciated
now as com is :)
but again, why do *any* of this if all he's going to do is write some data
to the port with no intention of signalling? he can just use file i/o
directly from php from that. same thing goes for vb. in fact...
i asked one of my vb developers one time why he had just spent the past 8
hours developing a label printing application where 7 of those hours were
spent getting the data to the printer - which was connected via a serial
port. he had written some beautiful port communication routines that would
have made dick greer feel inferior. :) it was all one way communication
though - and always would be. so, i bet him i could do all of that in 3
lines of code...he laughed until i wrote:
Open strComPort For Output As #lngFile
Write #lngFile, strLabel
Close #lngFile
or something similar at the time. the free dinner was great. :)
Navigation:
[Reply to this message]
|