摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ConsoleTest{ public class ClassT... 阅读全文
摘要:
The ProgID of the WorkspaceName's workspace factory[C#]public stringWorkspaceFactoryProgID {get; set;}[C++]HRESULT get_WorkspaceFactoryProgID(BSTR* pr... 阅读全文
摘要:
How to run a geoprocessing toolIn this topicRunning a geoprocessing toolToolbox names and namespacesRunning custom geoprocessing toolsExecuting a tool... 阅读全文
摘要:
进程间通信一、进程间通讯的方式进程间通讯的方式有很多,常用的有共享内存(内存映射文件、共享内存DLL、剪切板等)、命名管道和匿名管道、发送消息等几种方法来直接完成,另外还可以通过socket口、配置文件和注册表等来间接实现进程间数据通讯任务。以上这几种方法各有优缺点,具体到在进程间进行大数据量数据的快速交换问题上,则可以排除使用配置文件和注册表的方法;另外,由于管道和socket套接字的使用需要有网卡的支持,因此也可以不予考虑。这样,可供选择的通讯方式只剩下共享内存和发送消息两种。二、发送消息实现进程间通讯前准备下面的例子用到一个windows api 32函数[DllImport(" 阅读全文
摘要:
How threads differ from processesThreadsdiffer from traditionalmultitaskingoperating system processesin that:processes are typically independent, while threads exist as subsets of a processprocesses carry considerably morestateinformation than threads, whereas multiple threads within a process share 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Text;using System.IO;namespace ConsoleDelget{class set{private object[] items;public set(int numItems){items = new object[numItems];for (int i = 0; i 声明——>实例化——>作为参数传递给方法——>使用委托。下面就具体看下如何使用委托的:一、定义:delegate void Mydelegate(type1 par 阅读全文