pitfloner
12th September 2005, 17:36
In order to activate a project (tipcs2102m000), I’ve developed a VB application that calls a dll created by ttstpcreatdll.

First of all, I’ve checked the functionality of the dll by a new session and it’s worked ok. It activated the project correctly.

But VB doesn’t work. When I’ve tried to execute the attached code, BW windows showed the error message:

It is impossible to read the object or session opcsf2102m000.

I would appreciate some help as soon as possible

Joan

VB Code

Set oBAANCLIENTE = CreateObject("Baan4.Application.bsp")
oBAANCLIENTE.ParseExecFunction "opcsf2102m000", "activate_project(""123490"")"
MsgBox oBAANCLIENTE.Error
oBAANCLIENTE.Quit

Configuration
BaaN Ivc4, oracle 8.0.6, HP UX.

mark_h
12th September 2005, 17:53
I would say the library name is not called correctly. I would expect it to look like otipcsf2102m000 or what ever package it is in.

pitfloner
12th September 2005, 18:16
I’ve been modifying my code, but it still doesn’t work.

Last error has disappeared. BW shows no error message after execution.

mark_h
12th September 2005, 19:05
No error message at all? Try putting the library in debug mode. When the library gets called it should allow you to step through the code. This should allow you to see what is happening and what is going on.