0612

Greenleaf Serial Port Ocx

Hi all, I have a cash drawer and and opener device connected to a USB port that is bridged to a COM16 serial port. According to the vendor I just need to send char(27)+char(53) down the serial port andit will open the cash drawer. They provide a MS Excel VBA sample which uses MScomm32.ocx and it works.

Greenleaf Serial Port Ocx

But I have difficulties using that ocx file in PB 8. Is there someone here who can give me the required steps to implement and use that ocx in PB?

Even better would be a code example. Someone suggested to create a window, do insert-->control-->OLE and select the MScomm32.ocx file. So I did that and created a command button with the code to open the com port and send the string. But all I get is an error of something like 'invalid access of object property'.

If someone could help me with this that would be great. Thanks for thinking about it. Hans ---== Posted via the PFCGuide Web Newsreader ==--- fisher 01:55. Hi Roland, Thanks for responding. Unfortunately this doesn't work for me. I put the MSCOMM32.ocx into c: windows system32, put an OLE control on a window (insert-->control-->ole, created a command button and for that a script with the commands you suggested.

It can be used in a variety of development environments that support. ActiveX controls (the only exception is browsers where it is not appropriate to host an. ActiveX control that accesses client-side hardware such as the serial port). The source code for XMComm illustrates the design of the ActiveX control. Comm1.comExcel.CommPort = [Enter the com port here] Comm1.comExcel.Settings = '9600,n,8,1' 'enter your own for your device. If you don't have VB, you can purchase similar controls from. Programmer's Paradise or Greenleaf Software (http://www.gleaf.com/.

But it comes back with 'invalid external function property for the first command. How To Install Windows Xp Tablet Edition. I did NOT declare any global functions. So the question is, did you and wich ones?

Regards Hans On 26 Dec 2007 08:27:18 -0800, in sybase.public.powerbuilder.ole-ocx-activex Hans 08:31. That is GREAT!!! Not sure what I did wrong when I tried it but it works!!!

Only thing I can't do is read from the port. The connected device sends a status back wich is 'ESC + 60' if the drawer is open. In order to read I did this (after opening the port of course): blob rsdata string data rsdata = ole_1.object.input data = string (rsdata) The program runs over the statements and does not give any error message but the variabe is empty.

If you could help me also with this I would be infinitely grateful. 3d Driving School License Expired Oklahoma. On 31 Dec 2007 05:24:10 -0800, in sybase.public.powerbuilder.ole-ocx-activex Roland Smith [TeamSybase] wrote: >Did you run regsvr32 on MSCOMM32.ocx?

>>I did this from a new app specifically for trying this out. Here are my >steps: >>Open the New window and go to the 'PB Object' tab >Choose Standard Visual and click OK >Choose olecontrol and click OK >Switch to the Insert Control tab >Scroll down and select Microsoft Communications Control >Click OK >Save the object as u_mscomm32 >Place the object on a window with the control name ole_1 >>Roland Smith [TeamSybase] 05:00.

Sorry, I messed up the Greenleaf link. Here goes again. I only know of one control that does USB and that is the CommX control publish by Greenleaf Software. Their web address is.

You can buy this control from componentsource.com if not from the manufacturers website. It will run you about $150 per developer and is runtime free.: Does anyone know of a.ocx control that communicates to USB devices, the way the serial port control (like mscomm32.ocx) does?:: If not, which way can one implement that kind of communication?. OK, thank you very much! At their website, Greenleaf has also a trial version, or demo or somewhat, and I downloaded it. I'll post here how it works, if I can test it out.: Sorry, I messed up the Greenleaf link. Here goes again.:: I only know of one control that does USB and that is the CommX control publish by Greenleaf Software.

Their web address is. You can buy this control from componentsource.com if not from the manufacturers website. It will run you about $150 per developer and is runtime free.::: Does anyone know of a.ocx control that communicates to USB devices, the way the serial port control (like mscomm32.ocx) does?:::: If not, which way can one implement that kind of communication?::::.