From ASP VBSCript I have a problem calling a VB function I've written.
In the ASP...
'The objxml is correctly formed at this point
'defined as.... set objxml=server.CreateObject ("Microsoft.XMLDOM"
'Then
set objapi=server.CreateObject("FA_Hotel_Project.Hotel"
objapi.HotelSearch(objxml)
'The function Hotel search runs ok but how do I get the result out of the function?
'If I use the following then I am told that there is a Type Mismatch
' set Dumxml=server.CreateObject ("Microsoft.XMLDOM"
' set Dumxml=objapi.HotelSearch(objxml)
'
'In the DLL I have written the VB function HotelSearch with the following definition
' Public Function HotelSearch(xDocASP As DOMDocument) As DOMDocument
' and I have checked the content of HotelSearch object just before Exit Function
' Works fine if I have a VB exe calling the same function but from ASP VBScript I am struggling
' I could use a different return object instead of HotelSearch and again it is OK
' so is it something in the definition of HotelSearch?
ANY IDEAS WELCOMED
In the ASP...
'The objxml is correctly formed at this point
'defined as.... set objxml=server.CreateObject ("Microsoft.XMLDOM"
'Then
set objapi=server.CreateObject("FA_Hotel_Project.Hotel"
objapi.HotelSearch(objxml)
'The function Hotel search runs ok but how do I get the result out of the function?
'If I use the following then I am told that there is a Type Mismatch
' set Dumxml=server.CreateObject ("Microsoft.XMLDOM"
' set Dumxml=objapi.HotelSearch(objxml)
'
'In the DLL I have written the VB function HotelSearch with the following definition
' Public Function HotelSearch(xDocASP As DOMDocument) As DOMDocument
' and I have checked the content of HotelSearch object just before Exit Function
' Works fine if I have a VB exe calling the same function but from ASP VBScript I am struggling
' I could use a different return object instead of HotelSearch and again it is OK
' so is it something in the definition of HotelSearch?
ANY IDEAS WELCOMED