Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveX : Communications Control (MSCOMM32.OCX)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00041468
Message ID:
00041579
Vues:
29
>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
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform