>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao