datei speichern geht nicht...
-
hallo,
ich habe Visual Studio 2008 c++
Der CString neu ist blalblablalba und
meine Funktion ist....int logsave(CString neu) { CFile datei("c:\\log.txt", CFile::modeCreate); datei.Write(neu,sizeof(neu)); return 0; }
Als Fehlermeldung kommt...
[code]
1>.\error C2664: 'CFile::CFile(LPCTSTR,UINT)' : cannot convert parameter 1 from 'const char [11]' to 'LPCTSTR'
[cpp]
-
Beschäftige Dich mal mit MBCS und UNICODE und der TCHAR Notation.
Du hast einCFile datei(_T("c:\\log.txt"), CFile::modeCreate);