如何为我的C API创建智能感知 [英] How do I create intellisense for my C API

查看:71
本文介绍了如何为我的C API创建智能感知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我们有一个应用程序监控产品,其中包含不同语言的API数量
;其中一个是C API。


现在我想知道我们如何为我们的Visual

Studio.Net(本地C / C ++)用户提供intellisense(最好是两个VS 7.0

和7.1)。

我希望有一些类似参数信息的东西你可以获得例如
printf当你进入开场

括号,printf(

我希望我在整合

帮助时可以得到intellisense VS.Net,但即使我获得了对我们的

API的F1支持,我也没有得到任何智能感知。我们发送一个头文件

和一个库文件for开发和运行时的DLL。


也许这不是这个问题的正确新闻组,

如果是这样,我很抱歉,但是会很感激

正确方向的指针。


任何人都知道从哪里开始寻找?


关于

Ulf Lindback

Appmind软件

直接发送电子邮件:uli AT appmind.com
http://www.appmind.com

解决方案

我认为如果你将头文件添加到你的项目中,你会自动获得intellisense,如果是clude文件夹在C ++选项中正确设置。


亲切的问候,

布鲁诺。

" Ulf Lindback" < ul*@nospam.se>在消息中写道

news:09 **************************** @ phx.gbl ... < blockquote class =post_quotes>嗨!
我们有一个应用程序监控产品,有多种API用于不同的语言;其中一个是C API。

现在我想知道我们如何为我们的Visual
Studio.Net(原生C / C ++)用户提供intellisense(最好是VS 7.0)和7.1)。
我想要像你获得的参数信息一样printf当你进入开头
括号,printf(

我希望在将整个
帮助与VS.Net集成时可以获得智能感知,但即使我获得F1支持我们的API,我没有得到任何intellisense。我们发送一个头文件
和一个用于开发的库文件和一个运行时的DLL。

也许这不是''这个问题的正确新闻组,
如果是的话,我很抱歉,但是会很欣赏
正确方向的指针。

任何人都知道从哪里开始看?

关于Ulf Lindback
Appmind软件
直接发送电子邮件:uli AT appmind.com
http://www.appmind.com



不,如果我为特定的C ++

项目设置包含路径全局

(工具/选项/项目)或本地,则无关紧要,或者即使我复制了hea作为一个测试项目的同一个

目录。


我可以让intellisense工作的唯一方法就是

我在项目中有一个源文件(CPP),在我的标题中实现了

函数,我不想发送我们的

源代码。 />

关于

Ulf Lindback

-----原帖-----
如果添加
头文件toyour项目,并且如果在C ++选项中正确设置了包含文件夹
,我认为你会自动获得intellisense。
亲切的问候,
Bruno。

" Ulf Lindback" < ul*@nospam.se>在消息中写道
新闻:09 **************************** @ phx.gbl ...

嗨!
我们有一个应用程序监控产品,其中包含不同语言的
API数量;其中一个是C
API。
现在我想知道我们如何为我们的
Visual Studio.Net(本地C / C ++)用户提供intellisense(最好是两个VS 7.0)
和7.1)。
我想要像你得到的参数信息
printf当你进入开头
括号,printf(

我希望我能在整合
帮助VS.Net时获得intellisense,但即使我获得F1支持
我们的API,我没有得到任何intellisense。我们发送一个头文件
和一个用于开发的库文件和一个运行时的DLL。

也许这不是''这个
问题的正确新闻组,如果有的话,我很抱歉,但是会很感激指针正确的方向。

任何人都知道从哪里开始看?

关于Ulf Lindback
Appmind软件
直接发送电子邮件:uli AT appmind.com
http://www.appmind.com





我能为你提供帮助。

intellisense有时会拒绝为我的某些项目工作。对于某些

源文件,它可以工作对于其他人来说,它不是和编译器一样好的
,intellisense仍然是垃圾。

特别是与C#相比,它始终有效。


亲切的问候,

Bruno。

" ul*@nospam.se" <一个******* @ discussions.microsoft.com>在消息中写道

news:03 **************************** @ phx.gbl ... < blockquote class =post_quotes>不,如果我设置包含路径全局
(工具/选项/项目)或本地,则无关紧要。对于特定的C ++
项目,或者即使我将标题复制到与测试项目相同的
目录中。

我可以让intellisense工作的唯一方法似乎是如果
我在项目中有一个源文件(CPP),在我的标题中实现
功能,我不想发送我们的
源代码。

关于Ulf Lindback

-----原始消息-----
如果你添加


头文件到

你的项目,如果在C ++选项中正确设置了include文件夹


<亲切的问候,
布鲁诺。

" Ulf Lindback" < ul*@nospam.se>在消息中写道
新闻:09 **************************** @ phx.gbl ...

嗨!
我们有一个应用程序监控产品,其中包含许多针对不同语言的API。其中一个是C API。
现在我想知道我们如何为我们的Visual Studio.Net(本地C / C ++)用户(最好是VS 7.0和7.1)提供intellisense。
我想有一些像你得到的参数信息,例如printf当你进入开头
括号,printf(

我希望在将帮助与VS.Net集成时可以获得intellisense,但即使我得到F1支持我的API,我我们提供了一个头文件
和一个用于开发的库文件和一个用于运行时的DLL。

也许这不是这个问题的正确新闻组,如果有的话,我很抱歉,但是会很感激指针正确的方向。

任何人都知道从哪里开始寻找?

关于
Ulf Lindback
Appmind软件
直接发送电子邮件:uli AT appmind.com
http://www.appmind.com





Hi!
We have an application surveillance product with a number
of API''s for different languages; one of them is a C API.

Now I wonder how we can supply intellisense to our Visual
Studio.Net (native C/C++) users (preferably both VS 7.0
and 7.1).
I would like to have something like the parameter info you
get for e.g. printf when you enter the opening
parenthesis, printf(

I had hoped I could get intellisense when integrating the
help with VS.Net, but even though I get F1 support for our
API, I don''t get any intellisense. We ship a header file
and a library file for developing and a DLL for runtime.

Maybe this isn''t the correct newsgroup for this question,
if so, I''m sorry, but would appreciate a pointer in the
correct direction.

Anyone have any idea where to start looking?

With regards
Ulf Lindback
Appmind Software
direct email: uli AT appmind . com
http://www.appmind.com

解决方案

i think you get intellisense automatically if you add the header file to
your project, and if the include folder is correctly set in the C++ options.

kind regards,
Bruno.
"Ulf Lindback" <ul*@nospam.se> wrote in message
news:09****************************@phx.gbl...

Hi!
We have an application surveillance product with a number
of API''s for different languages; one of them is a C API.

Now I wonder how we can supply intellisense to our Visual
Studio.Net (native C/C++) users (preferably both VS 7.0
and 7.1).
I would like to have something like the parameter info you
get for e.g. printf when you enter the opening
parenthesis, printf(

I had hoped I could get intellisense when integrating the
help with VS.Net, but even though I get F1 support for our
API, I don''t get any intellisense. We ship a header file
and a library file for developing and a DLL for runtime.

Maybe this isn''t the correct newsgroup for this question,
if so, I''m sorry, but would appreciate a pointer in the
correct direction.

Anyone have any idea where to start looking?

With regards
Ulf Lindback
Appmind Software
direct email: uli AT appmind . com
http://www.appmind.com



Nope, doesn''t matter if I set the include path "globally"
(tools/options/projects) or "locally" for a specific C++
project, or even if I copy the header to the same
directory as a test project.

The only way I can get intellisense to work seems to be if
I have a source file (CPP) in the project implementing the
functions in my header, and I don''t want to ship our
source code.

With regards
Ulf Lindback

-----Original Message-----
i think you get intellisense automatically if you add the header file toyour project, and if the include folder is correctly set in the C++ options.
kind regards,
Bruno.
"Ulf Lindback" <ul*@nospam.se> wrote in message
news:09****************************@phx.gbl...

Hi!
We have an application surveillance product with a number of API''s for different languages; one of them is a C API.
Now I wonder how we can supply intellisense to our Visual Studio.Net (native C/C++) users (preferably both VS 7.0
and 7.1).
I would like to have something like the parameter info you get for e.g. printf when you enter the opening
parenthesis, printf(

I had hoped I could get intellisense when integrating the help with VS.Net, but even though I get F1 support for our API, I don''t get any intellisense. We ship a header file
and a library file for developing and a DLL for runtime.

Maybe this isn''t the correct newsgroup for this question, if so, I''m sorry, but would appreciate a pointer in the
correct direction.

Anyone have any idea where to start looking?

With regards
Ulf Lindback
Appmind Software
direct email: uli AT appmind . com
http://www.appmind.com


.



whish i could help you.
intellisense refuses to work for some of my projects sometimes. for some
source files it works, for others it doesn''t.

as good as the compiler is, intellisense is still crap.
especially compared to C#, where it always works.

kind regards,
Bruno.
"ul*@nospam.se" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...

Nope, doesn''t matter if I set the include path "globally"
(tools/options/projects) or "locally" for a specific C++
project, or even if I copy the header to the same
directory as a test project.

The only way I can get intellisense to work seems to be if
I have a source file (CPP) in the project implementing the
functions in my header, and I don''t want to ship our
source code.

With regards
Ulf Lindback

-----Original Message-----
i think you get intellisense automatically if you add the


header file to

your project, and if the include folder is correctly set


in the C++ options.


kind regards,
Bruno.
"Ulf Lindback" <ul*@nospam.se> wrote in message
news:09****************************@phx.gbl...

Hi!
We have an application surveillance product with a number of API''s for different languages; one of them is a C API.
Now I wonder how we can supply intellisense to our Visual Studio.Net (native C/C++) users (preferably both VS 7.0
and 7.1).
I would like to have something like the parameter info you get for e.g. printf when you enter the opening
parenthesis, printf(

I had hoped I could get intellisense when integrating the help with VS.Net, but even though I get F1 support for our API, I don''t get any intellisense. We ship a header file
and a library file for developing and a DLL for runtime.

Maybe this isn''t the correct newsgroup for this question, if so, I''m sorry, but would appreciate a pointer in the
correct direction.

Anyone have any idea where to start looking?

With regards
Ulf Lindback
Appmind Software
direct email: uli AT appmind . com
http://www.appmind.com


.



这篇关于如何为我的C API创建智能感知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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