Author Topic: undeclared identifier  (Read 2827 times)

0 Members and 1 Guest are viewing this topic.

DaveW

  • Guest
undeclared identifier
« on: June 16, 2006, 12:01:07 AM »
Could someone please provide the corrections I need if this?

It was a piece of code added to an existing project to write the handles out to a txt file. It works fine in 2004-2007 versions, but not in Visual Studio 6 for ACAD 2002.

I actually need to run and create my VB code in ACAD 2002, so I need this code to work in the older C++.

If it is easy and you care to take a stab, it would help me out quite a bit. I know nothing of C++ at all, short of inserting a new file and going rebuild all.

Thanks.


Stretch.cpp(124) : error C2065: 'FILE' : undeclared identifier
Stretch.cpp(124) : error C2065: 'f' : undeclared identifier
Stretch.cpp(124) : error C2065: 'fopen' : undeclared identifier
Stretch.cpp(124) : error C2106: '=' : left operand must be l-value
Stretch.cpp(139) : error C2065: 'fwrite' : undeclared identifier
Stretch.cpp(141) : error C2065: 'fclose' : undeclared identifier


Nevermind, I go it.
I just needed to add this to the top of the file:

#include <stdio.h>
extern int getval(void);
« Last Edit: June 16, 2006, 12:17:16 AM by DaveW »