Archived

This topic is now archived and is closed to further replies.

Is the 'interface' keyword an MS C++ extension?

This topic is 5021 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was going to say am\lmost the exact same thing. interface is a Pascal/Delphi keyword, but I''ve never heard of it being in C++.

Share this post


Link to post
Share on other sites
interface is a #define for struct (or struct FAR) that is declared in BaseTyps.h and ObjBase.h in the Windows Platform SDK.

Share this post


Link to post
Share on other sites
Doesn''t mean it''s a keyword, just that they chose to highlight it. You can highlight your own name if you like. I think the file to alter is usertypes.dat or something like that.

[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]

Share this post


Link to post
Share on other sites
quote:
Original post by SiCrane
It''s "usertype.dat". No ''s''.


What is the full path to this file? Basically, what comes after ''Microsoft Visual Studio/'' ?

Share this post


Link to post
Share on other sites
It varies from version to version. Your documentation should tell you. But for .NET it should go in the same directory as devenv.exe. Keep in mind that a clean install probably won''t have a usertype.dat file. You''ll need to create it yourself; it''s just a text file, Notepad will work.

Share this post


Link to post
Share on other sites
You are likely looking at the interface keyword that is part of Managed C++ (.NET) extensions. I don''t remember if it is interface or _interface

Share this post


Link to post
Share on other sites