Weird things happening!!!!!!

This is a discussion on Weird things happening!!!!!! within the Windows Programming forums, part of the Platform Specific Boards category; This is a bit difficult to explain, but here goes anyway
I have a workspace with 2 .c files, 3 ...

Weird things happening!!!!!!

every now and again i get errors about 2 functions that have always worked and i have not altered them in any way whatsoever either directly or indirectly

because i cant track down the cause of these errors i remove the debug folder and rebuild the project. No errors, i make a small change to a file, 26 errors, i remove the change, 26 errors are still there ?????

i am slowly loosing my sanity, can someone have a look at my code and aid me in fixing this weird happening please

the functions in question are doFileSave & doFileOpen in the test1.c

i have already reinstalled visual studio 6 in case it was a bug in the program, but still the same, i am running winXP

See anything wrong here? Your prototypes are correct elsewhere so I assume this is a tiredness induced problem and I won't go into details. I didn't think this was valid either(but I may be wrong on this one):

Code:

static void logger(char path[MAXSTR], char test[MAXSTR]);

Fix your prototyes in test.c and header files and see if the errors remain.

Does anyome know why the compiler doesn't baulk on these invalid "prototypes"? The errors suggest that the compiler interprets them as being functions whose argument lists are not specified or take no arguments.

A good idea is to learn to use the debugger. Set a breakpoint on the line that is causing you trouble and follow the code through to where it is crashing.

>>Question: How stable is Visual Studio 6?<<

Believe me, I've sworn at the compiler numerous times when I've had an unexplainable error. However, it has usually turned out to be a problem in my code. No compiler is perfect but most seem to be pretty good.