Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. output?? cout

output?? cout

Scheduled Pinned Locked Moved Mobile
c++databasetutorialquestionlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rodneyk1
    wrote on last edited by
    #1

    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:

    D 1 Reply Last reply
    0
    • R rodneyk1

      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:

      D Offline
      D Offline
      democls
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups