Home
Extended ECM
API, SDK, REST and Web Services
LAPI and VB.NET
Sales_Comparex_Africa_(x-comparexsales_-_(deleted)
I can successfully connect to a Livelink instance using VB6 using the code below. But for some reason I can not get it to initialize the lapi_base.dll using VB.NET. Can anyone help with this problem? I get the following value in debug mode: 562949953421312In a Class module: Declare Function LL_Initialize Lib "lapi_base.dll" Alias "LL_Initialize" (ByVal headerVersion As Long) As Long Declare Function LL_Uninitialize Lib "lapi_base.dll" () As LongIn a Form on a cmdClick : Dim session As Long Dim status As Long Dim buf As String Dim tmp1 As Long Dim tmp2 As Long Dim siz As Long Dim NodeID As Long Dim ParentID As Long Dim nodeVol As Long 'Initialize status = LL_Initialize(LL_HEADER_VERSION) If (status <> LL_OK) Then MsgBox("LL_Initialize failed, Wrong header or DLL") Else...
Find more posts tagged with
Comments
***_****_(citlon01admin_-_(deleted))
I am having the identical problem. I think I am missing a crucial part here.Were you able to solve the problem?Thank you.
Sales_Comparex_Africa_(x-comparexsales_-_(deleted)
In VB6 the return datatype is a long but in .NET there are no longs but the equavalent is an Integer. I change all longs to integers and LAPI allowed me to connect.Next step which I have a problem with is accessing the Enterprise Workspace in .NET.Any help will be appreciated?
Sales_Comparex_Africa_(x-comparexsales_-_(deleted)
I had same problem - I changed all longs in to VB.NET integers.The long datatype does not work in .NET. I still placed lapi function call in .NET modules instead of class modules.
***_****_(citlon01admin_-_(deleted))
Here is how I access the enterprise workspace.Dim enterpriseinfo as IntegerDim lStatus as Integerdim m_ParentID as IntegerLL_ValueAlloc(enterpriseinfo)lStatus = LL_AccessEnterpriseWS(m_SessionID, enterpriseinfo)And if you need the Object ID...lStats = LL_AssocGetInteger(enterpriseinfo, "ID",m_ParentID)Does this help?If I need a specific document, I use the LL_ListObjects, and specify a WHERE clause that filters for the Name of the object I am looking for.