Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

burgc002

VC++ Compiler question....

This topic is 5816 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I use DX to program the game (if you can call it that)stuff I do,anyway when I call a function, VC usually lists all the parameters for the function ya know how it does. Well even when I use a ddraw object it usually lists the member functions for me to choose from. Anyway it has stopped doing that I was wondering why? Its only with the DX stuff tho. If I havent totally confused you guys, try to help me out please, I would really appreciate it.

Share this post


Link to post
Share on other sites
Advertisement
I know exactly what you are talking about.
Try to write code in another file and I bet it will work fine at least for awhile.
But what is weird is that it isn''t just in certain files that it won''t autocomplete function calls for you. It is almost like certain functions aren''t allowed to have autocomplete, while code right above it can.
I cannot tell you why it does it that way, but if you were to start a new program, it should still work. As to why you can''t just keep using it in your old program, I wonder if google.com would have any answers.

Share this post


Link to post
Share on other sites
Here''s something even funnier...When I try DirectDrawCreate() it autocompletes but when I try DirectDrawCreateEx() it doesnt??
Wierd......

Share this post


Link to post
Share on other sites
Auto completion exists when a file is linked to the file you are working on somehow. So if I include stdio.h, I will have auto completion using functions like printf(), scanf().... But I wont if I use functions from another file (because I have to include _that_ file also)

~Dwarf

Share this post


Link to post
Share on other sites
So when I include a .cpp file that holds info for my class into a file, why is it when I write one function from that class it autocompletes and when I write another function it doesn''t? I remember having checked and my code is correct and it worked, but it just seemed like VC++ just didn''t see that the function was declared there.

Share this post


Link to post
Share on other sites
Also I know I included ddraw.h in my program. But the DirectDrawCreateEx() wont autocomplete... I think that it is located in ddraw.h, I think anyway, I could be wrong. Trust me

Share this post


Link to post
Share on other sites
Usually it works for me when I moves all .H files under ''External Dependencies'' into ''Include files'' folder.

If not, try close the workspace, delete the .NCB and .CLW, reload, full-rebuilt.. and see it works or not.

Share this post


Link to post
Share on other sites
Didnt work for me the function was ZeroMemory(), oh well hehe at least it wont keep me from programming!

Share this post


Link to post
Share on other sites
There''s also a replacement for VC''s broken autocomplete function called VisualAssist (www.wholetomato.com). This one works like it should and even offers a few other features like extended syntax coloring.

-Markus-

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!