Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
インターフェイスを初期化します。
public sacapi_bool sqlany_init( const char * app_name, sacapi_u32 api_version, sacapi_u32 * version_available )
app_name API を使用しているアプリケーションに名前を付ける文字列。たとえば、"PHP"、"PERL"、"RUBY" など。
api_version コンパイルされたアプリケーションのバージョン。
version_available サポートされている API の最大バージョンを返すオプションの引数。
成功した場合は 1、失敗した場合は 0。
次の例は、SQL Anywhere C API DLL を初期化する方法を示します。
sacapi_u32 api_version; if( sqlany_init( "PHP", SQLANY_API_VERSION_1, &api_version ) ) { printf( "Interface initialized successfully!\n" ); } else { printf( "Failed to initialize the interface! Supported version=%d\n", api_version ); }