I create in VB6SP5 a DLL containing 1 Module (Mod1), 2 Class modules (Cmessage and ParseNonHTMLMsg, and I add a Standard EXE project to the DLL Project for testing.

The Standard EXE executes just like i want it to:
(cls ParseNonHTMLMsg is a Public Function returns as String)

VB Code:
  1. dim x as New NonHTMLEmailPrsr.ParseNonHTMLMsg
  2. dim s as string
  3.  
  4. s = x.ParseEmailMsg("filepath")
  5.  
  6. msgbox s

however, i create the dll, register on the webserver and execute it from an ASP page:

VB Code:
  1. DIM x
  2. dim str
  3.  
  4. set x = Server.CreateObject("NonHTMLEmailPrsr.ParseNonHTMLMsg")
  5.  
  6. str = x.ParseEmailMsg("filepath")

it returns an error:

Technical Information (for support personnel)

Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'ParseEmailMsg'
/test_readmail.asp, line 8

Line 8:str = x.ParseEmailMsg("filepath")

can anyone provide some input for me??

Thank you.