|
 |
asp_components thread: Unable to create VB/ASP COM object
Message #1 by Evan Storback <evan_storback@d...> on Wed, 15 Aug 2001 16:35:03 +0100
|
|
Hello,
I am trying to create a ASP COM object in VB 5. I am working on a 98
machine and have PWS installed.
In the Project->References for the activex .dll I have included the
Microsoft Active Server Pages Object Library and
all the other default references. I am trying to create an ObjectContext
object so I can get reference to the Response object. When I go to make
the .dll it gives me the error message saying "User-defined type not
defined" and highlights the line defining the
ObjectContext object like this:
Dim Test as ObjectContext
Am I missing a something? Should I be including something more?
Its acting as if the Microsoft Active Server Pages Object Library is not
referenced at all.
Thanks,
Evan
evan_storback@d...
Message #2 by "john m" <john_20_28_2000@y...> on Wed, 15 Aug 2001 17:47:29
|
|
Try:
' A reference to the ASP library'entry point.
Dim sc As ASPTypeLibrary.ScriptingContext
> Hello,
>
> I am trying to create a ASP COM object in VB 5. I am working on a 98
> machine and have PWS installed.
> In the Project->References for the activex .dll I have included the
> Microsoft Active Server Pages Object Library and
> all the other default references. I am trying to create an ObjectContext
> object so I can get reference to the Response object. When I go to make
> the .dll it gives me the error message saying "User-defined type not
> defined" and highlights the line defining the
> ObjectContext object like this:
>
> Dim Test as ObjectContext
>
> Am I missing a something? Should I be including something more?
> Its acting as if the Microsoft Active Server Pages Object Library is not
> referenced at all.
>
>
> Thanks,
>
> Evan
> evan_storback@d...
|
|
 |