By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,905 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,905 IT Pros & Developers. It's quick & easy.

How do I create intellisense for my C API

P: n/a
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

Nov 16 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
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

Nov 16 '05 #2

P: n/a
uli
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

.

Nov 16 '05 #3

P: n/a
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

.

Nov 16 '05 #4

P: n/a
Hi Ulf,

Thanks for posting in the group!

I will consult this problem to the product team member, then reply you if
have any results.
Best regards,
Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

Nov 16 '05 #5

P: n/a
could you post this on the newsgroup?
i think there is noone who does not have intellisense problems from time to
time.

kind regards,
Bruno.
"Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:Ti**************@cpmsftngxa06.phx.gbl...
Hi Ulf,

Thanks for posting in the group!

I will consult this problem to the product team member, then reply you if
have any results.
Best regards,
Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 16 '05 #6

P: n/a
Hi Bruno,

Thanks for your endeavor to the group!

If I have gotten any useful results, I will post it on the group.
Best regards!

Gary Chang
Microsoft Online Partner Support

Get Secure! www.microsoft.com/security
This posting is provided "AS IS" with no warranties,and confers no rights.
--------------------
| From: "Bruno van Dooren" <mi******@hotmail.com>
| References: <09****************************@phx.gbl>
<Ti**************@cpmsftngxa06.phx.gbl>
| Subject: Re: How do I create intellisense for my C API
| Date: Mon, 17 Nov 2003 08:35:50 +0100
| Lines: 30
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <u$*************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 212-123-31-242.ifiber.telenet-ops.be 212.123.31.242
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:30500
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| could you post this on the newsgroup?
| i think there is noone who does not have intellisense problems from time
to
| time.
|
| kind regards,
| Bruno.
|
|
| "Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
| news:Ti**************@cpmsftngxa06.phx.gbl...
| > Hi Ulf,
| >
| > Thanks for posting in the group!
| >
| > I will consult this problem to the product team member, then reply you
if
| > have any results.
| >
| >
| > Best regards,
| > Gary Chang
| > Microsoft Online Partner Support
| >
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
| > --------------------
| >
|
|
|

Nov 16 '05 #7

P: n/a
Hello Ulf,

Thanks for posting in the group.

We need some more information before we dig more into the problem, could
you please post the following information here?

1) Which kind of DLL library are you working on now? A managed class
library, or a typical Win32 DLL?

2) Now if you include header file and cpp file of that DLL into your
project, the intellisense works, right? However, I am not sure of it since
typical Win32 DLL's cpp file may have some functions named DLLMain... How
could you build the project after including such CPP file in VS.NET 2003?
Did you separate exported functions' implementation into this CPP?

3) You mentioned C and CPP on the post. Which one are you working on now, a
..C file or a .CPP file? It is much better if you could include some source
code or detailed repro steps here so that we won't misunderstand the issue.

Look forward to your response.

Have a good day.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #8

P: n/a
Sorry to have confused you, forget about the C/CPP file
stuff, just a bad example which really isn't applicable to
our problem.

We have an typical Win32 DLL exposing a plain C-API.
We ship a C header, a library file for dynamic linking
with the DLL and the DLL itself.

I would like our customers, who include our header and
link with our LIB file to be able to get intellisense
(parameter info) when using our library in unmanaged C/C++
projects in Visual Studio 7.0/7.1

With regards
Ulf Lindback
Appmind Software
direct email: uli AT appmind . com
http://www.appmind.com
-----Original Message-----
Hello Ulf,

Thanks for posting in the group.

We need some more information before we dig more into the problem, could you please post the following information here?

1) Which kind of DLL library are you working on now? A managed class library, or a typical Win32 DLL?

2) Now if you include header file and cpp file of that DLL into your project, the intellisense works, right? However, I am not sure of it since typical Win32 DLL's cpp file may have some functions named DLLMain... How could you build the project after including such CPP file in VS.NET 2003? Did you separate exported functions' implementation into this CPP?
3) You mentioned C and CPP on the post. Which one are you working on now, a .C file or a .CPP file? It is much better if you could include some source code or detailed repro steps here so that we won't misunderstand the issue.
Look forward to your response.

Have a good day.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
.

Nov 16 '05 #9

P: n/a
Hello Ulf,

Thanks for the detailed information.

I did a test on my side and reproducted the exact issue now. Currently I am
working with other engineers to see if this feature is supported in VS.NET
intellisense. I will post back here with more information as soon as
possible.

If you have any more concerns on it, please feel free to post here.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.