Hi,

I'm writing MFC code and i got an error after writing this command line:

CFile f(_T("E:\\testHMM.txt", CFile::modeCreate|CFile::modeWrite));

the error is Debug Assertion Failed!!!

Thanks,

Mostafa Fouly

you should have received a compile-time error on that line because it's syntically incorrect -- _T( macro is never closed, needs a ) before the comma.

i got a warning after building it not an error...and after closing the macro before the comma the file is created...
Thanks a lot:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.