Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Precompiled header

Status
Not open for further replies.

malone4

Programmer
Apr 3, 2001
5
MX
Hi,

I "migrated" a BIG code from BC++ to Visual C++. I am not using classes nor any "fancy stuff". I neither had used before Visual C++.
The problem is this: I can't run my program, for any called function (user defined and kept in a separate header file) gives me error with the simplest fopen function (asking to specify where is the file fopen.c).
At the beginning, I got the error C1010, I serached the forum and found similar questions, but any suggestion from there is working (such as include stdafx.h etcetc).
My question is this: how can I not use any precompiled headers or if not this, then what can be the problem?

I'm stucked for almost a week now and is getting me - hmmm, how to say - wild and angry?

Thank you.
Malone

#include "stdafx.h"
#include "def.f" //my header file

void main()
{ MyFunction();
....
}

MyFunction is in the def.h file, the simplest function for reading from a file.

void MyFunction()
{ FILE *stream;
stream=fopen("blabla.txt", "r"); --> here
};

Also there is a message: Loaded "C:\WINDOWS\KERNEL32.DLL" no matching symbolic information found.
Even with this message some examples are correctly executed. If I call MyFunction from main, well, it works.
 
could you please post there the first error message you get?

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top