Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX : Communications Control (MSCOMM32.OCX)
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00041468
Message ID:
00047225
Views:
36
>>ActiveX : Communications Control (MSCOMM32.OCX)
>>CLASS Name: MSCOMM
>>
>>I have a problem with with the folowing ActiveX: Communications Control (MSCOMM32.OCX)
>>
>>This is the first time i use ActiveX.
>>
>>This control manage the communication between the computer and a scale. I open the com1 port,
>>i send a request to open the scale. I can send a request for getting the weight and i can have the weight of the package.
>>When i clause the form, The control close the scale and close the com1 port.
>>
>>When i run the form i build using this ActiveX in design mode (with "!" button), it is perfect.
>>But when i build and run it in .exe mode (@?*¤£) it dosen't work properly!
>>
>>Everything supose to be ok, But it is not!
>>
>>Somebody can tell me why this don't work in EXE mode.
>>
>>Thank You!
>>
>>François Durocher
>>Troppus (DICOM) MIS
>
>Francois, could you give us more information on "Doesn't work properly" please? Do you have an error message? Data going to the wrong table? Input not getting data?
>
>Be sure your OCX is registered for USE as well as development. Run RegSvr32. Registering a second time won't hurt anything.
>
>I have a similar program, and at first had trouble with the return data. Then I found a variable which was PUBLIC in the VFP environment, and not properly initiated in the EXE. Silly, but I spent quite a lot of time looking at the OCX instead of my own programming.
>
>HTH
>Barbara


My ActiveX (MSCOMM32.OCX) is now ok, what I need is a delay to get the response from the scale. you know some computer is faster, and when he is faster, i lost the response. I put a delay of one second and everything is ok.

I'm sorry for this very late reply.

I don't have a permanent access to the WEB.

Many thank's for your concern!

Francois Durocher
Troppus-DICOM
(MIS)
Previous
Reply
Map
View

Click here to load this message in the networking platform