Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating an app to process ASP

Status
Not open for further replies.

bigfoot

Programmer
May 4, 1999
1,779
US
I want to create an application in VB to act as a forms processor. I do not want to configure and run perl.
Does anyone know how to do this??
Do I need to create a dll? exe?

Gary
 
I get this when I try to run it.

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/TestStuff/DLL/DLLTest.asp, line 19

Invalid class string
 
Have you registered the component using regsvr32.exe?
If so then you should be able to access it using:

Code:
set myObj = Server.CreateObject("MyDLL.PublicCreateableClassName")

You do need to have at least a single class set to Public Createable, and you must be trying to create this.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Yes, it's registered.

My ASp page reads
Dim f

Set f = Server.CreateObject("TestDLL.myFileIO")
f.FileName="c:\test1.txt"
f.OutLine="This is the ASP test"
f.WriteFile



My class takes a file name and writes it to a text file(this only for testing)

My dll is called TestDLL.dll
The class is myFileIO

Listing of class:<<<<<<<<<<<<<<<<<<<<
Option Explicit

Private mvarFileName
Private mvarOutLine As String

Public Property Let OutLine(ByVal szNewValue As String)
mvarOutLine = szNewValue
End Property

Public Property Get OutLine() As String
OutLine = mvarOutLine
End Property

Public Property Get FileName() As String
FileName = mvarFileName
End Property

Public Property Let FileName(ByVal szNewValue As String)
mvarFileName = szNewValue
End Property


Public Sub WriteFile()
Dim iFileNumber As Integer

iFileNumber = FreeFile

Open mvarFileName For Output As iFileNumber

Print #iFileNumber, mvarOutLine

Close iFileNumber

End Sub
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Thanks for any and all help
 
Woooooooo It works. The browser was looking on the server when I had it registered on my machine.

Thanks
 
Instancing property is 5.

Thank you all for your help.

I did this to make a program to take info from a form and write it to email.

MS email tools must be put onto a form, but the dll can't use forms. What now?
 
HELP! I'm getting a login failure. But if I run the dll in a vb app it go's fine. Not when used in a web page.
 
I can't get CDONTS to work. It will not do anything.

We don't have a smtp server. We have an ISP, but our internal mail is handled here, in our Exchange server.
 
How do I know?

My real email is gparkin@arett.com
Please email me if you know how to set this up.

I've been on this project for a week now and have not got anywhere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top