6 74 2 C Examples

LANSA Open Guide

6.74.2 C Examples

C Example 1

BOOL fOK;

int  iSession;

 

iSession = LceGetSessionId();

fOK = LceUsePartition(iSession, "DEM");

fOK = LceUseLanguage(iSession, "FRA");

 

fOK = LceOpenSession(iSession);

 

C Example 2

Use two partitions.

BOOL fOK;

int  iSession1;

int  iSession2;

 

iSession1 = LceGetSessionId();

fOK = LceUsePartition(iSession1, "DEM" );

fOK = LceOpenSession(iSession1);

 

iSession2 = LceGetSessionId();

fOK = LceUsePartition(iSession2, "TRN" );

fOK = LceOpenSession(iSession2);