问题描述
我想验证"归因"是什么意思选项在ATL项目和对象中是不可用的,但我在Visual Studio 2017中找不到该选项。
I want to veruify that "attributed" option is dissabled in ATL project and objects, but I cannot find that optionm in Visual Studio 2017.
任何人都知道它在哪里?
Anyone knows where is it?
谢谢!
推荐答案
感谢您在这里发帖。
>>我想验证"属性""选项在ATL项目和对象中是不可用的,但我在Visual Studio 2017中找不到该选项。
据我所知,自vs2008以来,归因于ATL的项目已被弃用。
As far as I know, the attributed ATL project is deprecated since vs2008.
您可能有一个非归因的ATL项目,它有一个.idl文件,您可能想要开始添加属性对象。在这种情况下,使用"添加类向导"来提供代码。或者,如果你想在你的ATL项目中使用,你可以使用
在项目的"属性页"对话框中),然后在项目中包含.h文件。
You may have a nonattributed ATL project, which has an .idl file, and you may want to start adding attributed objects. In this case, use the Add Class Wizard to provide the code. Or if you want to use in your ATL project, you would use theimportidl attribute, compile the .idl file to a .h file (see theMIDL Property Pages in the project's Property Pages dialog box), and then include the .h file in your project.
这是一个供您参考的文档。
Here is a document for you as a reference.
希望这对您有帮助。
最好的问候,
Baron Bi
这篇关于是Visual Studio 2017中的ATL属性标记选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!