上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页

2010年4月18日

Packaging an Assembly for COM(From msdn)

摘要: COM developers can benefit from the following information about the managed types they plan to incorporate in their application: A list of types that COM applications can consume Some managed types ar... 阅读全文

posted @ 2010-04-18 12:00 Acor 阅读(259) 评论(0) 推荐(0) 编辑

2010年4月12日

vc 问题总结

摘要: com问题总结http://www.cppblog.com/ice197983/articles/4178.htmlVC编程经验总结-整理自CSDN http://www.cppblog.com/ice197983/articles/9850.htmlVC积累 http://www.cppblog.com/ice197983/articles/8622.html 阅读全文

posted @ 2010-04-12 08:44 Acor 阅读(156) 评论(0) 推荐(0) 编辑

2010年4月10日

细说COM(转)

摘要: 用ATL创建COM组件一、创建一个模型(工程) MyProj。二、给模型(工程)增加一个组件 MyCom。三、给组件增加方法(函数) MyF1、MyF2、MyF3、MyF4。 一、创建模型(工程) MyProj在VC++6.0工作平台中,点击菜单 File 下的 New 菜单项,在出现的 New 对话框中选中 Projects 卡片,在列表框中选中 ATL COM AppWizard(活动模板库组... 阅读全文

posted @ 2010-04-10 21:11 Acor 阅读(1928) 评论(0) 推荐(1) 编辑

vc6中COM对lib的包装以及对COM的调用

摘要: 本实验包括三个工程:lib、COM、Test工程。lib实现一定功能(为一个静态库工程);COM对其进行包装;Test为测试程序。lib:包含两个文件LibOper.h和LibOper.cppLibOper.h#ifndef LIB_OPER_H#define LIB_OPER_Hextern "C" int add(int x, int y); #endifLibOper.cpp#include... 阅读全文

posted @ 2010-04-10 20:54 Acor 阅读(798) 评论(0) 推荐(0) 编辑

2010年4月4日

c#中abstract与virtual的区别(转)

摘要: 1.abstract方法只能在抽象类中声明,虚方法则不是。 abstract方法必须在派生类中重写,而virtual则不必2.abstract方法不能声明方法实体, abstract public void SD(); 虚方法则可以 public virtual void sdf() { Console.WriteLine("A"); }3.虚方法可以实现多态,而抽象方法不可以。。。c#中的int... 阅读全文

posted @ 2010-04-04 18:40 Acor 阅读(590) 评论(1) 推荐(0) 编辑

2010年4月3日

How to: Determine If a File Is an Assembly(From msdn)

摘要: A file is an assembly if and only if it is managed, and contains an assembly entry in its metadata. For more information on assemblies and metadata, see the topic Assembly Manifest.How to manually det... 阅读全文

posted @ 2010-04-03 13:22 Acor 阅读(250) 评论(0) 推荐(0) 编辑

2010年2月27日

vc6中COM对Dll的包装以及对COM的调用

摘要: 本试验包括三个工程:COM组件:OperCom ,调用Dll,实现一定的功能。Dll:SubDll,真正的功能实现者,为com调用。客户端:TestOperCom,用来测试com组件功能。 COM工程:核心部分代码(调用Dll,实现功能):// Oper.cpp : Implementation of COper#include "stdafx.h"#include "OperCom.h"#inc... 阅读全文

posted @ 2010-02-27 17:26 Acor 阅读(1417) 评论(0) 推荐(0) 编辑

2010年1月21日

不使用反射的依赖获取方法(转摘)

摘要: 示例(有个程序,既可以使用Windows风格外观,又可以使用Mac风格外观,而内部业务是一样的。):using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml;namespace Szh.DI.DependencyLocate{ public interface... 阅读全文

posted @ 2010-01-21 19:38 Acor 阅读(328) 评论(0) 推荐(0) 编辑

依赖注入(转摘)

摘要: 依赖注入产生的背景:随着面向对象分析与设计的发展,一个良好的设计,核心原则之一就是将变化隔离,使得变化部分发生变化时,不变部分不受影响(这也是OCP的目的)。为了做到这一点,要利用面向对象中的多态性,使用多态性后,客户类不再直接依赖服务类,而是依赖于一个抽象的接口,这样,客户类就不能在内部直接实例化具体的服务类。但是,客户类在运作中又客观需要具体的服务类提供服务,因为接口是不能实例化去提供服务的。... 阅读全文

posted @ 2010-01-21 19:21 Acor 阅读(272) 评论(0) 推荐(0) 编辑

2010年1月20日

Understanding WSDL

摘要: Understanding WSDL Aaron SkonnardNorthface UniversityOctober 2003Applies to:Web ServicesWeb Services Description Language (WSDL) 1.1WS-I Basic Profile Version 1.0XML MessagingXML SchemaSummary: See th... 阅读全文

posted @ 2010-01-20 11:24 Acor 阅读(459) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页

导航