摘要: Wtypes.h 中的非托管类型 非托管C 语言类型 托管类名说明 HANDLE void* System.IntPtr32 位 BYTE unsigned char System.Byte8 位 SHORT short System.Int1616 位 WORDunsigned short System.UInt1616 位 INTintSystem.Int32 32 位 UINTunsigne... 阅读全文
posted @ 2008-08-03 11:37 Ceiba 阅读(1506) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/pansiom/archive/2006/01/01/568096.aspxDllImport会按照顺序寻找的 1.exe所在目录 2.System32目录 3.环境变量目录 阅读全文
posted @ 2008-08-03 11:26 Ceiba 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 一、DataBinder.Eval的基本格式在绑定数据时经常会用到这个句程序:<%# DataBinder.Eval(Container.DataItem,"xxxx")%>或者<%# DataBinder.Eval(Container,"DataItem.xxxx")%> 下面方法的效率要比以上两种高。 <%# ((DataRowView)Container.Dat... 阅读全文
posted @ 2008-07-30 18:53 Ceiba 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1.设置web.config文件。<system.web> ...... <globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312" /> ...... </system.web>或者:aspx文件中:<met... 阅读全文
posted @ 2008-07-02 18:04 Ceiba 阅读(815) 评论(0) 推荐(0) 编辑
摘要: 有时候出差把项目带出去后,打开时老是提示我要连接源代码管理服务器,这个程序用到的源代码服务器管理我当然连接不上,看着很不爽,就开始删除源代码管理信息。先删除解决方案目录、各个项目目录下的:mssccprj.scc 、工程名.vssscc、vssver.scc 、项目名.csproj.vspscc这四类文件后,打开项目仍然报没删除干净,报下面错误:(×) 解决方案看起来是受源代码管理,但无... 阅读全文
posted @ 2008-07-02 17:59 Ceiba 阅读(274) 评论(0) 推荐(0) 编辑
摘要: --实例数据库create table [bt_area]([id] int identity(1,1),[pid] int,name varchar(20))insert [bt_area] select 0,'中国'union all select 0,'美国'union all select 0,'加拿大'union all select 1,'北京'union all select 1,'... 阅读全文
posted @ 2007-12-10 18:45 Ceiba 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 表(student)结构如下:name scorehuang 90huang 100huang 200wang 90wang 70a.取出所有人记录并显示它们的行号:select row_number() OVER (ORDER BY name ASC) asrowno,* from studentb.取出每个人的排名第二的成绩:select * from(select name,score,(r... 阅读全文
posted @ 2007-11-21 13:29 Ceiba 阅读(635) 评论(0) 推荐(0) 编辑