阅读:1558回复:0
ArcSDE C-API 开发:连接 SDE
<P>ArcSDE C-API 开发:连接 SDE</P>
<P >SE_CONNECTION Connection;<BR>SE_STREAM Stream;<BR>SE_ERROR Connect_error;<BR>LONG rc;<BR>CHAR*server, *instance, *database, *user, *passwd;<BR><BR>/* Connect to ArcSDE */<BR>rc = SE_connection_create<BR>(server, instance, database, user, passwd, ;Connect_error,;Connection);<BR>/*See Error handling section for check_error function code. */<BR>check_error (Connection, NULL, rc, "SE_connection_create");<BR><BR>/* Create a stream for the query */<BR>rc = SE_stream_create (Connection, ;Stream);<BR>/* See Error handling section for check_error function code. */<BR>checke_error (Connection, NULL, rc, "SE_stream_create");<BR><BR>/* Body of application */<BR><BR>/* Release the stream when it is no longer needed */<BR>rc = SE_stream_free (Stream);<BR><BR>/* Disconnect from ArcSDE */<BR>SE_connection_free (Connection);</P> |
|
|