上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: 1 IPostBackDataHandler 获取自动加载回发数据而必须实现的方法。 定义 ASP.NET 服务器控件为自动加载回发数据而必须实现的方法。   名称 说明 LoadPostData 当由某个类实现时,它为 ASP.NET 服务器控件处理回发数据。 RaisePostDataChangedEvent 当由类实现时,它用信号要求服务器控件对象通知 ASP.NET 应用程序该控... 阅读全文
posted @ 2010-11-18 11:08 b0b0 阅读(304) 评论(0) 推荐(0)
摘要: 1 状态管理概述 Control.ViewState :状态信息的字典。ViewState为StateBag的实例。         管理 ASP.NET 服务器控件的视图状态。        为支持服务器控件的视图状态管理而必须实现的属性和方法。 名称 说明 LoadViewState... 阅读全文
posted @ 2010-11-18 10:55 b0b0 阅读(409) 评论(0) 推荐(0)
摘要: 未处理 System.Runtime.InteropServices.SEHException Message="外部组件发生异常。" Source="Interop.Word" ErrorCode=-2147467259 StackTrace: 在 Word.Find.set_Text(String prop) 在 TPRI.Common.IOLibrary.OperatorWord.Repla... 阅读全文
posted @ 2010-11-18 10:22 b0b0 阅读(1286) 评论(2) 推荐(0)
摘要: C# Struct 内存对齐结构体:struct MyStruct0 { public byte id; public int val; }输出机构体的信息:static void ShowStructInfo0() { unsafe { int size = sizeof(byte); Console.WriteLine(" sizeof({0})={1} ", typeof(byte).Ful... 阅读全文
posted @ 2010-08-02 12:49 b0b0 阅读(1101) 评论(1) 推荐(0)
摘要: c 代码:#include stdio.h#include assert.h#define MAXLEN 1000int getline(char[] ,int);//供C# 调用 __declspec__declspec(dllexport) void reverseline(char dest[],const char source[]);int main(int argc, char *argv[]){ char currentline[MAXLEN]; int maxcount=0; int currentlen=0; char resultline[MAXLEN]; whil 阅读全文
posted @ 2010-07-28 12:00 b0b0 阅读(1576) 评论(1) 推荐(0)
摘要: 返回 局部变量的地址代码1:#include stdio.h#define N 5int * sum(int a ,int b){ int result=a+b; return &result;}int * getarray(int array[]){ int i=0; for(i=0;iN;i++) { array[i]=array[i]*10; } return array;}int main(int argc, char *argv[]){ int i=0; int a=3,b=5; printf("\n %d+%d=%d \n",a,b,*sum(a,b)); int arra 阅读全文
posted @ 2010-07-23 10:23 b0b0 阅读(687) 评论(0) 推荐(0)
摘要: 1. 定义表示定义一组条件并确定指定对象是否符合这些条件的方法。public delegate bool Predicate<T>( T obj);2. 示例using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace PredicateApp{ class Pro... 阅读全文
posted @ 2010-06-08 17:49 b0b0 阅读(487) 评论(0) 推荐(0)
摘要: 3 阅读全文
posted @ 2009-11-09 19:53 b0b0 阅读(426) 评论(0) 推荐(0)
摘要: 在WCF的使用过程中,有时会碰到传递的数据量比较巨大,客户端程序报错。常见的解决方法就是通过增大改变服务端与客户端配置文件serviceBehaviors的dataContractSerializer 的maxItemsInObjectGraph属性。有没有不通过配置文件,直接硬编码增大maxItemsInObjectGraph的值呢(此文不是考虑那种做法的优劣,而仅仅是探讨一种可能)?答案是肯定... 阅读全文
posted @ 2009-10-12 20:12 b0b0 阅读(1046) 评论(3) 推荐(0)
摘要: Windows服务ServicesDependedOn的奇怪问题??? 代码如下 public partial class WinServicePWServiceInstaller : Installer { private ServiceProcessInstaller process; private ServiceInstaller service; private const stri... 阅读全文
posted @ 2009-10-12 15:32 b0b0 阅读(665) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页