• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >vc/mfc > 各位大虾:vc创建新工程里的ATL和ActiveX到底各在什么情况下使用?

各位大虾:vc创建新工程里的ATL和ActiveX到底各在什么情况下使用?

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-06-04

佚名通过本文主要向大家介绍了atl activex,microsoft.vc80.atl,microsoft.vc90.atl,vc atl,vc80.atl等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 各位大虾:vc创建新工程里的ATL和ActiveX到底各在什么情况下使用?
描述:

vc创建新工程里的ATL和ActiveX到底各在什么情况下使用?
ATL COM 和 MFC ActiveX Control 的区别是什么,可否请哪位大虾指点一下?谢谢
比如做出来的控件是在web上用的,主要想知道什么时候该创建ATL,什么时候创建ActiveX?


解决方案1:

<atl开发指南>据说也不错

解决方案2:

atl可以做进程内服务(比如dll)和进程间服务(比如系统服务)供你的应用程序调用,比如你可以把数据库的访问作出atl com组件,你的应用程序只需要调用它提供的接口函数就可以获取数据等.
只做过atl,没做过MFC ActiveX Control ,只能谈点atl了,抱歉

解决方案3:

要用到MFC的话 用 MFC ActiveX Control 
ActiveX 也是一种COM
只是调调API函数就用ATL

解决方案4:

activex是一个规范,而mfc和atl只是两个工具而已,所以没有什么哪个做出来能用在哪,而另一个工具做出来的就不行

解决方案5:

activex控件一般都是ui控件,就是有界面的,比如按钮,对话框等等, acitivex控件也是com组件的一种
mfc activex control顾名思义它是使用mfc开发的, 
atl com组件是使用atl库,做出的com组件比较小巧

解决方案6:

INFO: Difference Between OLE Controls and ActiveX Controls
SUMMARY
The specification for ActiveX controls has been relaxed to give developers the ability to create smaller, faster controls that are more suitable for the Internet. In the new object linking and embedding (OLE) control specification, we make use of component categories, which relax previous rules that identify interfaces as being mandatory and allow greater flexibility to efficiently target certain areas of functionality without having to provide superfluous support to qualify as a control. The OLE control specification also adds some new features such as windowless objects, URL monikers, asynchronous monikers, progressive downloading, and OLE Hyperlinks. Perhaps most importantly, you can mark controls as safe for data download and safe for scripting. 
Keep in mind that an ActiveX control is just another term for an "OLE Object" or "Component Object Model (COM) Object." A "COM Object" must support the IUnknown interface. In addition, all ActiveX controls must be self-registering; as a result, an in-process control must implement and export DllRegisterServer and DllUnregisterServer. With NT 4.0 built-in marshaling support for the connection point interfaces, a control can now be a local server. This means that the control creates and registers its class factory objects with the system when it is first run. Because IUnknown does not allow you to do much, you want to implement at least one additional interface. However, these minimal requirements allow controls to be as lightweight as possible. 
Mike McKeown addresses this very confusing issue of OLE controls versus ActiveX controls in the October 1996 issue of the MIND (Microsoft Internet Developer) magazine. 
For more information on enabling controls for the Internet, as well as which interfaces and functions an ActiveX control supports, see the "ActiveX Controls" section of the ActiveX SDK online documentation. 
MORE INFORMATION
1. Q. What is the difference between an OLE control and an ActiveX control? 
A. No difference. "ActiveX control" renames and restructures the OLE controls technology. For marketing reasons, the term OLE has come full circle and once again refers to the OLE technologies that apply to object linking and embedding only. The term "OLE control" has been replaced with the "ActiveX control" to distance the name from the older Object Linking and Embedding technology with which controls have very little in common. No one should use the term "OLE control" anymore. 
2. Q. Is an OCX an "ActiveX control"? 
A. No, an OCX is a file that can hold one or more ActiveX controls. These files do not need to have the .ocx extension (some are .dll files) and thus should not be referred to as "OCXs". This also links them to a file extension which is what our document-centric paradigm is trying to eliminate. 
3. Q. Are out-of-the-box OLE controls (such as the one that shipped with Visual Basic 4.0) also ActiveX controls? 
A. Yes, all controls that we formerly called "OLE controls" are ActiveX controls. This excludes VBXs and Windows Custom Controls because they were never OLE-based to start with. 
4. Q. How about MFC controls? Are they also ActiveX controls? 
A. Yes, all MFC controls are ActiveX controls. An old Visual C++ 4.0 control is an ActiveX control, as is one that is created with Visual Basic 4.0. View the term "ActiveX control" as a renaming and restructuring, an evolution of the OLE control technology. 
A control can be built to work efficiently on the Internet, to be hosted in desktop container applications,&n

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 大家一般都怎么打包Atl开发的ActiveX控件?
  • 在ATL中,如何设置ActiveX的运行时的属性。
  • ATL写的ActiveX要怎么取得网页里PARAM传入的值?
  • 请教,ATL写的ActiveX控件在IE中加载时接口的调用顺序
  • 用ATL改写的Win32窗口程序加载ActiveX控件出错
  • Atl做的ActiveX控件的事件,在客户端如何调用?
  • 初次编写ATL的ActiveX控件,关于属性是函数的问题!请大家帮助!
  • 如何用ATL写ActiveX文档?
  • ATL无窗口ActiveX控件中,得到容器的方法
  • 有没有用SDK开发ActiveX控件的文章或源代码啊?不用MFC或ATL

相关文章

  • 2017-06-04 mfc开发ActiveX控件中,如何用属性页中的ListBox一次性的向控件传递多个被选中的控件?请教高手!
  • 2017-06-05 跨线程传递mfc对象(对象指针)的问题,困惑很久很久,望指教!谢谢!
  • 2017-06-05 AfxBeginThreadWaitForSingleObject
  • 2017-06-05 为什么使用#import指令引入类型库后在debug目录下只生成了tlh文件而没有.tli?
  • 2017-06-04 VC++2005编程环境,两台电脑通过串口相连接,怎样进行接发数据通信?
  • 2017-06-05 请高人指点:WTL项目中:CListViewCtrl控件始终响应不了消息LVN_COLUMNCLICK。详见内容
  • 2017-06-04 directshow的显示问题,很奇怪
  • 2017-06-04 接口中的连接点函数中难道不可以调用其他接口函数?
  • 2017-06-04 如何查找一个com对象的文件路径
  • 2017-06-05 超级难题2个---系统方面的,你会不会?

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • 一个小问题,顺带散分!
    • 紧急求救——关于vc++对matlab的调用(matcom)
    • com初学者疑问
    • 我用CreateFile做一个串口通信的程序,为什么CreateFile总是返回INVALID_HAND_VALUE
    • 请问VB编写的ActiveXDLL在VC++中如何调用?我使用了Project->AddtoProject
    • 怎样在ActiveX中使用Document/View?
    • 一个关于接口中BSTR的问题在vb和c#中调用后返回的类型不正确不知道为什么
    • 有关多线程的问题
    • 关于CAxwindow窗口的疑惑高手进~~~~~~~~~~~
    • 学com有方法吗?

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有