luis melo
11th July 2012, 16:02
I made a program in VB making a call from Unix prompt via telnet and intend to start a Baan session via prompt using C-Interface, but i'm getting an error, I am not able to compile the c code generated by biccstub 6.1.

Can anyone help me with an example?

The code below is a dll I intend to shoot vi C-Interface
|********************************************************
|* tccomdll0002.o 0 VRC B40O b2 des0
|* TESTE DE CHAMADA
|* 606511d
|* 11/07/12 [09:55]
|********************************************************
|* Script Type: Library
|********************************************************

function extern teste()
{
zoom.to$("tiedmo250m000",z.session,"","",0)
}

--------------------------------------------------------------------------

Code below was generated by biccstub 6.1
/* --- teste --- */

#include <stdio.h>
#include <stdlib.h>
#include "c_interface.h"

extern int messtype;
extern int ci_errno;

static char *dll="ocomdll0002.o";

günther
13th July 2012, 15:00
Hi Luis.

I used to be a C programmer for over 10 years. For a project where I needed a socket interface to our Baan IV (which misses that feature), I played around but finally I decided to stop that. So I guess that you will also not be lucky with that.

But: If you are on UNIX (via telnet or whatever), why don't you run simply "bshell6.1 <sessioncode>" to start a session? That session can be programmed with normal Baan tools, maybe a 3GL instead of 4GL if you don't need a GUI.

Regards
Günther

luis melo
13th July 2012, 16:42
Günther


Thank you for the reply.

Actually I agree with you that it's not worth much worth using C-Interface, because due to very version of Baan Altig I'm working (Baan IV B2) this giving me a lot of work.

Did some tests with the direct called via ba 6.1 session code and it worked the way I needed.

Go by this way.

Regards,
Luis