We help IT Professionals succeed at work.

Complete word option does not work

skibud2
skibud2 asked
on
I went ahead and wrote a program that includes a header file with some function declarations (dll calls) in it. For some reason the "complete word" option does not work with functions in that header file. It does not seem to work with any .h or .c files that I include with my project. I tried going to Tools->options->editor->Statement complete options and everything was checked. Any help will be much appreciated.

-Mike


Comment
Watch Question

Sometimes Visual C++ just does not complete words or show the value of an item when oyu pass your cursor over it. Hopefully that bug is fixed in the new version 7 that just came out.  I remember someone saying that this was a problem with intellisense/point or whatever.  There is nothing you can do about it.

My 2 cents...

Author

Commented:
It turns out that implementations of functions show up using the "complete word" option. The function declarations don't show up. Is there a way to get the function declarations to show up?

Author

Commented:
Since they are dll function declarations, they don't have the actual implementation files.
CERTIFIED EXPERT
Author of the Year 2009
Commented:
"This behavior is by design"

PRB: Function Prototypes Do Not Generate Parameter Info
ID: Q190974
http://support.microsoft.com/support/kb/articles/Q190/9/74.ASP

The link describes the symptom exactly, but does provide a specific reason that this 'design' was chosen.

To make the thing work, you need to actually include the source file in which the external fn is implemented into your project.  Or perhaps write a dummy procedure.

-- Dan

Explore More ContentExplore courses, solutions, and other research materials related to this topic.