GoblinGreen
Programmer
I need to develop several active x Dll's which will be called from some asp files. I find that I can create instances of the classes and set properties but I cannot call ANY methods. out of desperation I created the following DLL, TestD with the Class TestC This Class has one method :
Public Function TestM(ByVal WordsGoHere As Variant) As Variant
TestM = WordsGoHere & " PROCESSED"
End Function
Simple hey!
Right here is the calling asp code.
On error resume next
ListingID = Request.QueryString("ListingID"
Set LePrinter = Server.createObject("TestD.TestC"
response.write Listingid
item = LePrinter.TestM ( ListingID )
response.write item
Set LePrinter = Nothing
response.write err.description & " - " & err.source
This is the resultant output
262447Object required - Microsoft VBScript runtime error
What is going on here?
Public Function TestM(ByVal WordsGoHere As Variant) As Variant
TestM = WordsGoHere & " PROCESSED"
End Function
Simple hey!
Right here is the calling asp code.
On error resume next
ListingID = Request.QueryString("ListingID"
Set LePrinter = Server.createObject("TestD.TestC"
response.write Listingid
item = LePrinter.TestM ( ListingID )
response.write item
Set LePrinter = Nothing
response.write err.description & " - " & err.source
This is the resultant output
262447Object required - Microsoft VBScript runtime error
What is going on here?