Link to home
Start Free TrialLog in
Avatar of Tarnge
Tarnge

asked on

includes??

Can anyone tell me why my program comes up with a dialog box asking me to give it the path for fopen.c. I wasn't aware this file existed,or that if it ever did, the function it provided by would not be provided in stdio.h. I havent changed my compiler/linker options, and this message box just keeps coming up now when I'm ytrying to open a file. At first it wanted to know where gets.c was!

My curret included files are: -

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Avatar of lbertacco
lbertacco

Maybe you are trying to debug the program or used debug compiler option. What compiler are you using and udner which OS?
Have you been renaming any of your source files?
Avatar of Tarnge

ASKER

Ok, after a bit more testing (and playing around!) it only comes up with the file request when I'm debugging. When running, earlier on it kept crashing, but i started a new project and readded all the files and it doesn't crashedm but I still can't debug past the call to fopen() because it request the fopen.c file again.

I'm using Windows XP SP1, Visual Studio 97 (ie. MS Visual C++ 5.0), and I've started the project as a Win32 Console Application.

I havent renamed any source files at all.


( Just a thought , but: does anyone know if there are any limits on using original C procedures in a .cpp extension file, I know u can't do it the other way around - I always thought C++ was fully back compatible with c code!)
ASKER CERTIFIED SOLUTION
Avatar of lbertacco
lbertacco

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tarnge

ASKER

You're right lbertacco, I forgot I was using to step into to get into all of my own routines. Any idea why it would have crashed when running tho?
Probably you are using different buil options, but it's difficult to tell.