vc ++中的创建文件 [英] creation file in vc++

查看:128
本文介绍了vc ++中的创建文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建OCX文件以及dll和ocx文件之间有什么区别并给出正确的示例

解决方案

OCX几乎是过时的东西。您可以在此处找到相关主题的概述: http://en.wikipedia.org/wiki/Object_Linking_and_Embedding [ ^ ]。



这一切都基于COM,这对学习更有意义:

http: //en.wikipedia.org/wiki/Component_Object_Model [ ^ ],

http://www.microsoft.com/com/default.mspx [ ^ ],

http://www.polberger.se/components/read/com.html [ ^ ]。



DLL是一个非常通用的东西,动态链接库,用作库的PE文件,

http://en.wikipedia .org / wiki / Dynamic-link_library [ ^ ],

http://en.wikipedia.org/wiki/PE_executable [< a href =http://en.wikipedia.org/wiki/PE_executabletarget =_ blanktitle =New Window> ^ ]。



基本上,所有代码都来自可执行文件,EXE或DLL,首先用作应用程序(包含入口点),第二个用作库,但严格来说他们之间的差异有点模糊。 COM组件可以在两者中实现。这不是快速解答中的主题。你可以掌握COM如果你读了一本书,或者大量的文档,但几乎没有一篇文章。



-SA

how to create OCX file and what is difference between dll and ocx file and give proper example

解决方案

OCX is pretty much obsolete stuff. You will find the overview of related topics here: http://en.wikipedia.org/wiki/Object_Linking_and_Embedding[^].

It''s all fundamentally based on COM, which makes more sense to learn well:
http://en.wikipedia.org/wiki/Component_Object_Model[^],
http://www.microsoft.com/com/default.mspx[^],
http://www.polberger.se/components/read/com.html[^].

And DLL is a very general thing, a dynamic-link library, a PE file used as a library,
http://en.wikipedia.org/wiki/Dynamic-link_library[^],
http://en.wikipedia.org/wiki/PE_executable[^].

Basically, all the code comes in executable file, EXE or DLL, first are used as applications (contain entry point), second ones as library, but, strictly speaking the difference between them is somewhat fuzzy. COM components can be implemented in both. This is not a topic to cover in a Quick Answer. You can master COM if you read a book on it, or some mass of documentation, but hardly one article.

—SA


这篇关于vc ++中的创建文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆