ArcSDE C APiµÄC#µ÷ÓÃ
Ñ¡Á½¸ö±È½ÏÓдú±íÐԵĺ¯Êý
Ê×ÏÈÏÂÔØ°²×°sdk£¬½«ÆäÖеÄsde.dll,pe.dllºÍsg.dll¿½±´¹ýÀ´
ʹÓÃÈçϵĴúÂ룬ָ¶¨dllºóÖ±½Óµ÷ÓÃÆäÖеĺ¯Êý£¬
/// <summary>
/// Sets the value for a small integer column.
/// </summary>
[DllImport(".\\sde91.dll", SetLastError = true, ThrowOnUnmappableChar = true)]
public static extern Int32 SE_stream_set_smallint(IntPtr stream, Int16 column, sbyte[] short_val);
/// <summary>
/// Sets the value for a string column.
/// </summary>
[DllImport(".\\sde91.dll", SetLastError = true, ThrowOnUnmappableChar = true)]
public static extern Int32 SE_stream_set_nstring(IntPtr stream, Int16 column, byte[] string_val);
ÔÚ²åÈëÊý¾ÝʱʹÓõ½µÄÁ½¸öº¯Êý£¬Ò»¸öÊDzåÈëstring£¬ÁíÒ»¸öÊDzåÈësmallint£¨shortÐÍ£©
ÔÚc#ÖУ¬stringÊÇunicodeµÄ£¬ËùÒÔÐèҪʹÓú¯ÊýSE_stream_set_nstring
´Ëº¯ÊýµÄµÚÈý¸ö²ÎÊýÈçÒÔÉÏ´úÂëÖеģ¬Èç¹ûÖ±½ÓдΪstring£¬Ôò¶ÔÓÚÖÐÎÄ×Ö·û£¬³öÀ´µÄ¾ÍÊÇÂÒÂëÁË
ʹÓÃbyte£¬È»ºóµ÷ÓÃʱÈçÏ£º
ret = Stream.SE_stream_set_nstring(insertStream, 3, (new UnicodeEncoding()).GetBytes("²âÊÔ"));
¶ÔÓÚsmallintÐÍ£¬ÔÚSE_stream_set_smallintº¯ÊýÖÐÖ±½ÓʹÓÃshort£¬
Ò²³öÏÖ´íÎ󣬲»ÖªµÀΪʲô£¬ºóÀ´Ïëµ½
C#ÖеÄsbyteÊÇ8λµÄ£¬Á½¸ö×é³ÉµÄÊý×é¾ÍÊÇÒ»¸öshort(16λÓзûºÅÕûÐÍ)
È»ºóÊÔÁËÊÔ£¬¹ûÈ»¿ÉÓã¬
ʹÓõÄʱºò×¢Ò⣬±ÈÈçÒª´æÈëÒ»¸ö±äÁ¿ashort;
sbyte[0]ÖеÄÊýÖµ£¬¿ÉÒÔΪСÓÚ256µÄÖµ
µ±ÊýÖµ´óÓÚ256ʱ(1<<8)
sbyte[1]¾ÍÊÇÊýÖµashort>>8;
sbyte[0]Ϊashor-((ashort>>8)<<8)
ʹÓÃλÔËË㣬¼òµ¥·½±ãЧÂʸߣ¬²»ÖªµÀ»¹ÓÐûÓÐÆäËû²»ÐèҪת»»µÄ·½·¨
Ïà¹ØÎĵµ£º
[root@ocsser file]# cat array-05.c
//this is a program for two juzheng xiangcheng.
#include <stdio.h>
int main(){
int i,j,m,n;
int g,k,f;
int c[5][6];
& ......
¾ö¶¨ÕÒʱ¼ä°ÑÊý¾Ý½á¹¹¸´Ï°Ï£¬´ÓÁ´±í¿ªÊ¼°É¡£Õâһ֪ʶµãËä˵²¢²»Éæ¼°¸´ÔÓµÄËã·¨£¬²»ÐèÒª·Ñ¾¡Í·ÄÔȥ˼¿¼À´ÁúÈ¥Âö£¬µ«ÊÇҪд³öÍêÕûµÄ³ÌÐòÀ´£¬»¹ÊÇÒª»¨Ò»Ð©Ê±¼äµÄ¡£ÌرðÊÇÈç¹û¶ÔÖ¸Õë²Ù×÷²»¹»ÊìÁ·£¬¼«Ò׳ö´í¡£ºÃ¾ÃûÓÃCд³ÌÐòÁË……
ÍêÕû´úÂ룺
/*
* µ¥Á´±í»ù±¾²Ù×÷C°æÊµÏÖ³ÌÐò
* °üÀ¨²åÈ롢ɾ³ý¡¢²éÕÒ¡£
*
* ......
<select class="wellId" id="gasOriginWellId" name="gasOriginWellId" value="${mechWellForm.gasOriginWellId}" index="true">
< ......
2010Äê05ÔÂ1ºÅ |
23:15·ÖÀࣺ¹ÜÀíά»¤
, Õï¶Ï°¸Àý
| ±à¼
| ±êÇ©£º11g
¡¢dbca
¡¢netca
| 13
views
±¾Îijö×Ô “inthirties£¨ÄÐ
ÈËÈýÊ®£©
”²©¿Í£¬×ªÔØÇëÎñ±Ø×¢Ã÷×÷Õߺͱ£Áô³ö´¦¡£
¿Í»§×°ºÃÁËOracle£¬°²×°³É¹¦ÁË£ ......
¡¾ÊµÏÖ¹¦ÄÜ¡¿£ºLinuxϵÄC±à³Ì£º±àдһ¸ö³ÌÐò£¨¿â£©£¬ÊµÏÖ¶¨Ê±Æ÷£¨¼ÆÊ±Æ÷£©µÄ¹¦ÄÜ£¬ËüÄÜΪÓû§ÌṩÔÚͬһ½ø³ÌÖжà´ÎʹÓõĶ¨Ê±Æ÷¡£ÕâÀïÒªÇóÓÃÐźÅÀ´ÊµÏÖ¡£
¡¾½âÌâ˼·¡¿£º±àдһ¸ö½á¹¹ÌåTimer´ú±íÒ»¸ö¼ÆÊ±Æ÷£¬È»ºóÔÙ¶¨ÒåTimerÀàÐ͵ÄÊý×émyTimer[N]£¬ÓÃÀ´±£´æÎÒÃÇÉèÖõĶ¨Ê±Æ÷£»ÔÙ¶¨Ò庯ÊýsetTimer£¨£©Éú³É¼ÆÊ±Æ÷£¬²¢½«Éú³É ......