output?? cout
-
I have the windows CE application programming book and it covers things in EVC++ 3.0. I am useing code that he gives in his examples and he uses "cout<<_T" . Whenever I try to compile it doesn't like the cout command. Is there something that I need to import or include to use the cout command? Here is what I have for an example.
void Listing4_1() { CEGUID pceguid; if(!CeMountDBVol(&pceguid, _T("\\MyVolume.CDB"), CREATE_NEW)) cout << _T("Could not create database volume") << endl; else cout << _T("Database volume created") << endl; // now unmount the database volume if(CeUnmountDBVol(&pceguid)) cout << endl << _T("Database volume unmounted") << endl; else cout << endl << _T("Database volume could not be unmounted") << endl; }
why doesn't it like it?Any Ideas? Thanks guys, Rod:sigh: -
I have the windows CE application programming book and it covers things in EVC++ 3.0. I am useing code that he gives in his examples and he uses "cout<<_T" . Whenever I try to compile it doesn't like the cout command. Is there something that I need to import or include to use the cout command? Here is what I have for an example.
void Listing4_1() { CEGUID pceguid; if(!CeMountDBVol(&pceguid, _T("\\MyVolume.CDB"), CREATE_NEW)) cout << _T("Could not create database volume") << endl; else cout << _T("Database volume created") << endl; // now unmount the database volume if(CeUnmountDBVol(&pceguid)) cout << endl << _T("Database volume unmounted") << endl; else cout << endl << _T("Database volume could not be unmounted") << endl; }
why doesn't it like it?Any Ideas? Thanks guys, Rod:sigh:Whell i think that case is: macros "_T" is defined for unicode usage and as i understand u use just ASCII version for this situation there is "L" - macros. In ms vc existed some macroces with u can define and all will do automaticly but i do not remember them. So i think that solution is include tchar.h file. Try can will work.