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.
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.