Using C in a VC MFC project

J

Jerome

I need to incluse normal c files in an MFC project.
However, VC gives the error

fatal error C1010: unexpected end of file while looking for
precompiled header directive

Is it possible to mix C files in a MFC project, if yes then what
changes are to be done to the C and respective .h file.
 
I

Ian Collins

Jerome said:
I need to incluse normal c files in an MFC project.
However, VC gives the error

fatal error C1010: unexpected end of file while looking for
precompiled header directive

Is it possible to mix C files in a MFC project, if yes then what
changes are to be done to the C and respective .h file.

You'd be better of asking on a windows group, this one is for C++
language questions.
 
S

Simon

Jerome said:
I need to incluse normal c files in an MFC project.
However, VC gives the error

fatal error C1010: unexpected end of file while looking for
precompiled header directive

Is it possible to mix C files in a MFC project, if yes then what
changes are to be done to the C and respective .h file.

This is not a C++ question, but anyway.

You need to change the property for that C file to say that it will not
be using precompiled headers.

The exact steps depend on what version of visual studio you are using,
(6 or 2003 and later).

Simon
 
J

Jerome

This is not a C++ question, but anyway.

You need to change the property for that C file to say that it will not
be using precompiled headers.

The exact steps depend on what version of visual studio you are using,
(6 or 2003 and later).

Simon

Thanks Yqever and Simon for your answer it was helpful and worked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top