clGetEnv  clIsServer

Chapter 2: Bridged Functions

clInstance

Description

Returns the instance number of the current server application. To add this functionality to an application, insert the following #dll statement at the top of the project file:

#dll lib[X] “rtesrv.dll”

where X is a unique number.

This is useful when you run multiple instances of a server application.

Syntax

clInstance();

Return value

Integer.

Returns > 0 (the instance number of the application instance running the application) for success, and 0 for failure.

Examples

Example 12

int rv;
string login;
rv = clInstance();
if (rv ==1)
	login=”Serv1”;
if (rv==2)
	login=”Serv2”;




Copyright © 2005. Sybase Inc. All rights reserved. clIsServer

View this book as PDF