I was going nowhere with that, couldn't find any references to use system.web in VB6 but I did find this for anyone else trying to use the ASP objects - session,cookies, server etc from within a vb dll. Just add this into the dll
Public Function OnStartPage(aspScriptingContext As ScriptingContext)
On Error Resume Next
Set Request = aspScriptingContext.Request
Set Response = aspScriptingContext.Response
Set Server = aspScriptingContext.Server
Set Session = aspScriptingContext.Session
Set Application = aspScriptingContext.Application
End Function
...and then you have access to all objects exactly as you would in an asp page e.g.
Private Request As IRequest
Private Response As IResponse
Private Server As IServer
Private Session As ISessionObject
Private Application As IApplicationObject
Public Function OnStartPage(aspScriptingContext As ScriptingContext)
On Error Resume Next
Set Request = aspScriptingContext.Request
Set Response = aspScriptingContext.Response
Set Server = aspScriptingContext.Server
Set Session = aspScriptingContext.Session
Set Application = aspScriptingContext.Application
End Function
Public Sub MakePage()
Dim objctx As ObjectContext
Set objctx = GetObjectContext()
Response.Write Session("test"

Response.Write Request.Cookies("username"
Set objctx = Nothing
End Sub