是Visual Studio 2017中的ATL属性标记选项 [英] Were is ATL attributed tag option in Visual Studio 2017

查看:308
本文介绍了是Visual Studio 2017中的ATL属性标记选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想验证"归因"是什么意思选项在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?

谢谢!

推荐答案

嗨Tomas Tamayo,

Hi Tomas Tamayo,

感谢您在这里发帖。

>>我想验证"属性""选项在ATL项目和对象中是不可用的,但我在Visual Studio 2017中找不到该选项。

据我所知,自vs2008以来,归因于ATL的项目已被弃用。

As far as I know, the attributed ATL project is deprecated since vs2008.

您可能有一个非归因的ATL项目,它有一个.idl文件,您可能想要开始添加属性对象。在这种情况下,使用"添加类向导"来提供代码。或者,如果你想在你的ATL项目中使用,你可以使用
importidl attribute,将.idl文件编译为.h文件(参见
MIDL Property Pages 在项目的"属性页"对话框中),然后在项目中包含.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 the importidl attribute, compile the .idl file to a .h file (see the MIDL 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.

https://msdn.microsoft.com/en-us/library/dcy94zz2 .aspx #vcconattributeprogrammmingfaqanchor5

希望这对您有帮助。

最好的问候,

Baron Bi


这篇关于是Visual Studio 2017中的ATL属性标记选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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