zhoujs
路人甲
路人甲
  • 注册日期2004-07-09
  • 发帖数38
  • QQ24938384
  • 铜币276枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1559回复:0

ArcSDE C-API 开发:连接 SDE

楼主#
更多 发布于:2007-02-12 14:41
<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>
喜欢0 评分0
Sam.Zhou/GIS系统架构师
游客

返回顶部