Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing MSComm Control
Message
 
 
À
18/07/2000 08:15:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00393493
Message ID:
00394105
Vues:
11
>I am in the beginning stages of trying to create a COM object that will be used inside an ASP page. I can instantiate the base MSComm control via the following syntax:
>
>oComm = CREATEOBJECT('mscommlib.mscomm')
>
< snipped >

Tom,
As you've seen from this thread OleControl must be instantiated as part of a form. That is a limtiation of VFP. You can instantiate the ActiveX control by itself but you then have to bind it to another object to get the events to run your code.

I'm interested in the reason you are tyring to to do this one aspect. If this is going to be used in an ASP page, what will it do. AFAIK, if the object is created at the top of the ASP code page, the object will be released when the server finishes processing the page. What code could run in that small a time slice? Are you going to instantiate this as part of a session and store it in a session variable?

If you can't tell me. I understand. I'm just curious.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform