hmiranda
5th June 2003, 21:15
Hi people
I want to develop one interfase in microsoft ASP using vb to use a DLL in BaaN (createobject Baan.application.testappl ) but it seems is not working well,
The page cound not run the dll and looks that the page never end to run the procedure..
I also tried to encapsulate the vb code in one VB COM dll that works fine if one VB.exe uses it but does not work if one ASP page uses it.
Does anyone knows how to use this dll in ASP ..maybe changing some parameter in IIS (windows 2000) or giving some special parameters to the dlls
I hope someone can help me .
thanks
Henry Miranda
trchandra
5th June 2003, 23:19
Henry,
WHat is error message you are getting when you try to execute the ASP page? I have done some ASP coding but that was long time back. I remeber that some DLLs dont work with ASP as they are not IIS enabled. To avoid this I guess you have to register this new VB COM Dll with MTS. Once the DLL is available with MTS, IIS assumes it is one of its library and executes without any problem.
regards
hmiranda
5th June 2003, 23:48
hi trchandra
here is the code for my dll in VB (COM)
---------------------------------------------------------------
Public Function InitializeBaaN(ByVal istrOrder As String, istrRelease As String) As String
Dim BaanObj As Object
Dim B_function As String
Dim temp_string As String
Dim intFound As Integer
On Error GoTo CannotCreateBaan
Set BaanObj = CreateObject("Baan.Application.TestEnvironment")
BaanObj.Timeout = 1000
On Error GoTo BaanAutomationError
B_function = "fesfxdll0002.report.start.time(" & Chr(34) & istrOrder & Chr(34) & "," & Chr(34) & istrRelease & Chr(34) & ")"
BaanObj.ParseExecFunction "ofesfxdll0002", B_function
temp_string = BaanObj.ReturnValue
intFound = InStr(temp_string, "Reported start time is")
If intFound <> 0 Then
InitializeBaaN = Mid(temp_string, Len("Reported start time is") + 1)
Else
InitializeBaaN = temp_string
End If
BaanObj.Quit
Set BaanObj = Nothing
Exit Function
CannotCreateBaan:
Err.Raise vbObjectError, "cgeneral:InitializeBaaN", "Unable to start Baan"
Exit Function
BaanAutomationError:
Err.Raise BaanObj.Error, , BaanObj.ReturnValue
BaanObj.Quit
Set BaanObj = Nothing
End Function
-------------------------------------------------
When I run it from a VB.exe application appears one "option dialog" box with checkboxes options from Baan(¿?), but in ASP it does not appear anything when create one instance from this Dll.
And I also add this Dll in COM+ (component service in win 2k) ..
Thanks in advice for your help
Henry
vicchen
4th September 2003, 09:34
WHO CAN HELP ME! WHO CAN TELL ME ,HOW USE VB TO CONNECT BAAN SYSTEM
NvanBeest
4th September 2003, 09:37
What is it exactly that you are trying to achieve?
vicchen
4th September 2003, 09:53
HI
MY COMPANY WILL USE WINDOWS' ASP PAGE TO ACCESS BAAN'S DATA,BUT I DON'T KNOW USE WHICH WAY TO DO.
CAN YOU TELL ME USE WHICH INTERFACE TO ACCESS?
THANK YOU.
VICCHEN
NvanBeest
4th September 2003, 10:00
Check the other thread you created...
wgarcia
10th February 2005, 16:36
You can insert VB code into ASP page Only need install the BW version to do the conecction.
Good luck