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.
clInstance();
Integer.
Returns > 0 (the instance number of the application instance running the application) for success, and 0 for failure.
int rv;
string login;
rv = clInstance();
if (rv ==1)
login=”Serv1”;
if (rv==2)
login=”Serv2”;
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |