开发者

Visual Studio C++ Implement Interface

开发者 https://www.devze.com 2022-12-13 07:00 出处:网络
I know in Visual Studio, when programming in C#, if I specify that a class implements an interface, I can right click on the interface and \"Implement Interface\", which will auto-magically populate m

I know in Visual Studio, when programming in C#, if I specify that a class implements an interface, I can right click on the interface and "Implement Interface", which will auto-magically populate my class with the appropriate method signatures.

EDIT: Let me apologize for the vagueness of the original question. I'm looking for a quick easy way to get Visual 开发者_Go百科Studio to do the dirty work of implementing multiple COM interfaces, i.e. generating the method signatures/stubs in the implementing class.

Thanks,

Alex


Interfaces don't exist in C++.

The level of IDE support for the language is one of C#'s perks. Visual C++ is quite a different beast indeed.


C++ does not support interfaces, so Visual Studio does not supply a "Implement Interface" feature when you're working in C++.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号