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:
dim x as New NonHTMLEmailPrsr.ParseNonHTMLMsg
dim s as string
s = x.ParseEmailMsg("filepath")
msgbox s
however, i create the dll, register on the webserver and execute it from an ASP page:
VB Code:
DIM x
dim str
set x = Server.CreateObject("NonHTMLEmailPrsr.ParseNonHTMLMsg")
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.
To the world you may just be one person, but to this one person, you just might be the world.
i have confirmed MultiUse Instancing, DLL is registered and Visual Web Developer upon typing "x." then drops down "ParseEmailMsg" so i know it recognizes it. hmmm, this one has me confused.
To the world you may just be one person, but to this one person, you just might be the world.
attached is my project, any help is appreciated. like i mentioned, testing as described below works just fine, its the asp page that errors out like i mentioned above.
for testing: add standard exe project, set new project as startup, add a reference to NDME_MIMEPrsr2, add a button to the form and put this code behind the button onlick event:
VB Code:
Dim x As New NDME_MIMEPrsr2.ParseNonHTMLMsg
Dim s As String
s = x.ParseEmailMsg("[some .eml file here]")
MsgBox s
Set x = Nothing
obviously for asp testing you will have to create the dll and register it on the server. asp code as above
Last edited by johnweidauer; Jul 28th, 2005 at 12:16 AM.
Reason: additional info
To the world you may just be one person, but to this one person, you just might be the world.