Skip to main content
GameDev.net gamedev.net
🔒 Locked

Visual Studio's XML documentation and C++?

Started by Kibble Mar 13, 2005 at 11:52 PM 1 replies 4.6k views
Original Post
Kibble
Kibble
Can the XML documentation that appears in C# wizard generated code be used in C++ meaningfully? I like the idea of this and would like to start using this in my project, but it is (unmanaged) C++. I'm having a lot of difficulty figuring out if it can be used with C++, all the info I can find about it is for .Net languages. Anyone know?
Custard Slice
Custard Slice
I assume you mean the XML code commenting in Visual Studio (i.e. , , etc.) There is support for unmanaged c++ XML code commenting, but unfortunately its not as complete as in the managed languages: Unlike C#, there is no code completion for the XML comment tags which makes it easier to add to your code (the upcoming Visual Studio 2005 apparently fixes this as far as I'm aware).

If you look up "Recommended Tags for Documentation Comments" on the MSDN you can find some of the built in tags. I've used this before with no problem and was able to generate documentation.

You might also want to look into Doxygen which many people use for code documentation - there certainly is more information about this than about Visual Studios XML.

Hope that helps [smile]

EDIT: fixed links
Kibble
Kibble
Quote:
I've used this before with no problem and was able to generate documentation.

Good to hear this, I am going to start using it.

I had found the "Recommended Tags for Documentation Comments" and pages like it before but it is about C# so I wasn't sure it was applicable to unmanaged C++. Things like the 'permission' tag threw me off a bit.

Thanks for the info :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.