Thank you for the above. I have somehow made it accept to

#include <afx.h> by using the "use MFC in a shared .dll" property.

However Ive only written a few lines and they do not seem to work:

Code:
#include <afx.h>
using namespace std;

void main()
{
CFile fisier;
fisier.Open("c:\\test2.txt", CFile::modeCreate|CFile::modeWrite);


}
the error I have been given is:

error C2664: 'CFile::Open' : cannot convert parameter 1 from 'const char [13]' to 'LPCTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


Please, what is it that I am doing wrong?


Thank you in advance.