gous99
22nd March 2002, 16:31
Aslo with session tdpur4107s000.

When I try to create dll function server for those 2 session I get the following message: Fatal error: index 0 out of dim [0] 15 can not continue in ttstpcreatdll()

Can someone help? Thnaks

Badre Alam
23rd March 2002, 10:51
Dear,

The Error u are geting is due to Form type 2 or Form type 3 attached to the given session. for that first u have to change the view by using following stpapi command.

stpapi.change.view("session no")


Thanks

Alam Badre
alamb@dabur.com

ankybanky
23rd March 2002, 12:16
dear alam ,

if i cant create the dll , you expect to write the command where ?
(assumption : i dont have source code)
regards Anky
p.s clarify

alejandro
23rd March 2002, 14:58
This session creates a dll to help you, although is not mandatory to create a FS dll.

All functions created by ttstpcreatdll, call to standard functions located in ttstpapihand.

When you run ttsstpcreatdll a new library is created. You can see and modify its code in Maintain libraries session. You do not need source from session you are creating its FS dll.

To see how functions from ttstpapihand must be used there is a very good document in this forum. Make a search. If you do not find it i will attach a link.

Also you can use, if you use Unix bic_info6.1 -eu ottstpapihand

Hope this help.

gous99
25th March 2002, 16:19
Thanks to all.

Here is the problem. I can't do a change.view or any other thing to the dll, cause it doesn't get created at all, that is the problem, the session ttstpcreatdll, creates the dll for a given session, but for this particular session (in fact it's true for tppdm9156m00b and tdpur4107s000) it gives me the mentionned before error and does not create the dll, which IS the problem.

alejandro
25th March 2002, 16:24
You can use a session call with FS without creating the dll with ttstpcreatedll.

ttstpcreatdl is created by BaaN to help you, but it is not mandatory.

Yocan allways use standard functions located in ttstpapihand to call any session with FS.

ttstpcreatdll, creates for you a new dll for a specific session.

To use it you have to call it form VB with OLE or directly in BaaN with a new session or a new dll

Then YOU CAN use change.view or any other statements in your new VB project, or from excel, or directly with your new session.

gous99
25th March 2002, 16:31
Thanks Alejandro for being so quick to answer me back.

Look, I know all the functionality, and how it works, and that we can call stapi call from a regular program script.

All I'm asking here is, is there anyone that has that problem before, when using ttstpcreatdll for a given session, and ttstpcreatdll would not be able to complete and create the dll.

I know I can use a workaround, but it is still not normal that this ttstpcreatdll works for some sessions and not for others.

alejandro
25th March 2002, 16:36
OK, sorry

But the only thing you can do is:

1.- Verify if you have installed solution number 123466, it is the last patch for that component

2.- If the problem still occurs, create a new case in Support.


Hope this Helps

Alejandro