上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页

2010年1月9日

To consume exported DLL functions 之四 Call a DLL function

摘要: Calling a DLL FunctionAlthough calling unmanaged DLL functions is nearly identical to calling other managed code, there are differences that can make DLL functions seem confusing at first. This sectio... 阅读全文

posted @ 2010-01-09 11:13 Acor 阅读(185) 评论(0) 推荐(0) 编辑

2010年1月8日

To consume exported DLL functions 之三 Creating Prototypes in Managed Code

摘要: Creating Prototypes in Managed CodeThis topic describes how to access unmanaged functions and introduces several attribute fields that annotate method definition in managed code. For examples that dem... 阅读全文

posted @ 2010-01-08 17:05 Acor 阅读(198) 评论(0) 推荐(0) 编辑

To consume exported DLL functions 之二 Create a class to hold DLL functions.

摘要: Creating a Class to Hold DLL FunctionsWrapping a frequently used DLL function in a managed class is an effective approach to encapsulate platform functionality. Although it is not mandatory to do so i... 阅读全文

posted @ 2010-01-08 16:49 Acor 阅读(226) 评论(0) 推荐(0) 编辑

To consume exported DLL functions 之一 Identifying Functions in DLLs

摘要: Identifying Functions in DLLsThe identity of a DLL function consists of the following elements: Function name or ordinalName of the DLL file in which the implementation can be foundFor example, specif... 阅读全文

posted @ 2010-01-08 16:28 Acor 阅读(286) 评论(0) 推荐(0) 编辑

Consuming Unmanaged DLL Functions 之一初识示例

摘要: Platform invoke is a service that enables managed code to call unmanaged functions implemented in dynamic link libraries (DLLs), such as those in the Win32 API. It locates and invokes an exported func... 阅读全文

posted @ 2010-01-08 15:42 Acor 阅读(239) 评论(0) 推荐(0) 编辑

2010年1月6日

Remoting 配置格式说明(转)

摘要: 使用配置文件的好处是什么?很简单,他可以简化代码,可以随时更改,通道,端口,URL的设置不需要重新编译就可以运行。所以在实际项目中经常采用这种方式。怎么写一个服务器端的配置文件?下面举个例子:<configuration> <system runtime remoting> ///配置的都是与remoting有关的内容 <application> ///可以包含... 阅读全文

posted @ 2010-01-06 19:20 Acor 阅读(349) 评论(0) 推荐(0) 编辑

Remoting技术使用配置文件示例

摘要: 1、创建类库工程RemotableType.dll (提供remotable 类型)。RemotableType.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MyRemotableType{ public class RemotableType : Mar... 阅读全文

posted @ 2010-01-06 18:56 Acor 阅读(399) 评论(0) 推荐(0) 编辑

.Net Remoting 技术示例

摘要: 1、创建可远程的共享库(提供类型)。为了说明.NET Remoting 是如何运行的,先创建一个简单的类库,以创建远程的对象。依次点击“文件”->“新创建”->“工程”,选择创建一个C#Library,并将其命名为RemoteHello,然后点击OK按钮。这将创建一个.NETRemote客户端和服务器端用来通讯的&... 阅读全文

posted @ 2010-01-06 13:05 Acor 阅读(378) 评论(0) 推荐(0) 编辑

2010年1月5日

Configuration

摘要: ConfigurationThe .NET remoting infrastructure needs certain information in order to make remoting work smoothly. There are two ways to configure your remotable types: You can either call configuration... 阅读全文

posted @ 2010-01-05 15:47 Acor 阅读(251) 评论(0) 推荐(0) 编辑

Activation URLs II

摘要: Activation URLsServer-activated objects that are published at a URL outside the application domain are called well-known types. Therefore, the URL is called the well-known object URL. The form of a we... 阅读全文

posted @ 2010-01-05 15:46 Acor 阅读(141) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页

导航