我已经有了一些C++/CLI软件,它们都很好,并以C#形式记录,这意味着DOxygen能够将它拉出到一些不错的html中。有没有什么办法可以让我的相同信息出现在intellisense工具中,就像.net框架一样?如何获得完整的智能感知工具提示评论工作?
例如,可以说这是我的头文件(MyApp.h):
/*************** MyApp.h ***************/
/// My namespace containing all my funky classes
namespace MyNamespace
{
using namespace System;
ref class WorldHunger;
/// A truly elegent class which solves all the worlds problems
public ref class MyClass
{
public:
/// Constructs a MyClass
MyClass()
{
}
/// <summary>Attempts to fix world hunger</summary>
/// <param name="problem">The problem to try and fix</param>
/// <returns>Whether or not the problem was solved</param>
bool FixWorldHunger(WorldHunger^ problem);
};
}
...这它对应的实现:
/*************** MyApp.cpp ***************/
#include "MyApp.h"
using namespace MyNamespace;
MyClass::MyClass()
{
}
bool MyClass::FixWorldHunger(WorldHunger^ problem)
{
bool result = false;
/// TODO: implement something clever
return result;
}
这里就是智能感知为在建当我打字功能: http://www.geekops.co.uk/photos/0000-00-02%20%28Forum%20images%29/BrokenIntellisense1.jpg
这里就是智能感知为我自己的功能,当我键入: http://www.geekops.co.uk/photos/0000-00-02%20%28Forum%20images%29/BrokenIntellisense2.jpg
肯定有办法做到这一点?
由SO问题回答“记录C++/CLI库代码以便在c#中使用 - 最佳工具和实践?”:http://stackoverflow.com/questions/1040479/documenting-c-cli-library-code-for -use-from-c-best-tools-and-practices/1071967#1071967 – 2010-03-10 01:31:46
完美 - 不知道为什么我在搜索时没有发现: - / – 2010-03-10 09:07:16