Using COM constants on under IIS ASP.

Syver Enstad syver.enstad at sensewave.com
Sat Nov 4 14:44:25 EST 2000


"Mark Hammond" <MarkH at ActiveState.com> wrote in message
news:39FB8B19.9080001 at ActiveState.com...
> Syver Enstad wrote:
>
> >> As long as you've run makepy on the type-library of the object you're
> >> creating, all constants defined in that library will be available as
> >> attributes of win32com.client.constants when objects defined in that
> >> library are created.
> >
> > Thanks it worked, I should've tried it sooner.
> >
> > I thought it wouldn't work because I interpreted the Hammond/Robinson
book
> > as saying that the constants were not available until the object was
created
> > by win32com.client.Dispatch and that is never called in my asp file,
just
> > Server.CreateObject. I guess my interpretation is wrong...
>
> Your interpretation is correct.  It is just that the Active Scripting
> implementation calls win32com.client.Dispatch() internally!
>
> Mark.

Thank you Mark. Always nice to why things work! I'm trying out Python for
ASP at work for the moment. Much nicer than JScript because you have the
great Python library and inheritance too.





More information about the Python-list mailing list