Problem In Syntax Porting my code from Borland C++ to VC++ 6.0

Hi I am having problem in porting my code from borland C++ to visual C++ 6.0
As i understand there are two type of Bool one for c and one for C++ named as bool and BOOL however VC6 is having problem recognising BOOL ?? Are there any additional headers or library nodes which i have to link furthermore the following fcode returns an error

The following statements return errors:
fstream file_update(UpdatePath,ios::out);
MyFile.seekg (0,ios::end);

The headers which i have already included are:
#define _WIN32_WINNT 0x0500
#include "windows.h"
#include <iostream.h>
#include <winsock2.h>
#include <conio.h>
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include <dirent.h> //I had to copy this header ito visual C++
#include <process.h>
#include <fstream>
#include <io.h>
#include <sys/types.h>
#include <sys/stat.h>

any help with this would be appreciated..
Wrong.

C does not have a distinct Boolean type, logical expressions are of type int.

C++ introduced bool to allow overloading.

BOOL is a Windows define.

1
2
#include <iostream.h>
#include <fstream> 

Are you sure you meant to combine the new and old IOStream library?
Topic archived. No new replies allowed.