candle1113
15th January 2002, 03:17
I am writing a visual basic application that will reside on the client's computer and I want to send the information from the visual basic program to BaaN, creating a BaaN transaction (maybe update sales orders or update replenishment orders or create new job-managment job).

I was planing to generate function servers on several BaaN sessions using the "generate function server" session in BaaN4c4 (we use HP Unix as our BaaN App Server and Informix as our database). And I want to connect to these function servers with my visual basic program.

Is this possible? (we don't have Open World or BOI). Oh, we also don't have own any source code.

How can I make my visual basic program talk to the BaaN function servers?

mark_h
15th January 2002, 16:44
Check out the Ole automation examples that usually come with the client. At least they did on our version of the client.

I played with this for a while using Excel. What the Excel code did was call a DLL which used the stpapi commands to run the session. We also do not own the source code. I will try to find the code and post an example.

Mark

mark_h
15th January 2002, 20:32
Attached is a sample I used to get the call to the DLL completed. Thanks to Gordon for providing me with a sample to get it up and running.

Hope this helps.

Mark

candle1113
15th January 2002, 21:46
I appreciate the feedback on OLE and the sample, but doesn't BaaN OLE functionality only run on Windows NT servers and not on Unix servers?

gfasbender
15th January 2002, 22:28
Using the OLE calls provided in Mark's example, you can interface between VB and Baan through the BW (Baan Windows) client.