Simple question

M

mitch

Using Visual Studio 2003/2005 I create a project of type Visual C++
Class Library (.NET).

I add a method. In this method I need to open a file and write to it. I
type:

fopen("out.lis", "wt");

I get fopen identifier not found. I add #include <stdio.h> I get:

unresolved external symbol "struct_iobuf* _cdecl(char const*, char
const*)

Can anyne help me here?

Thanks.
 
K

Kevin Spencer

You need to specify that the C++ project is not a managed C++ project.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.
 

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

Top