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. Other Discussions
  3. The Weird and The Wonderful
  4. VC 2003 & 2005 compilo bug...

VC 2003 & 2005 compilo bug...

Scheduled Pinned Locked Moved The Weird and The Wonderful
c++debugginghelpquestion
3 Posts 3 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.
  • A Offline
    A Offline
    achainard
    wrote on last edited by
    #1

    Test App : MFC dialog typed (unmanaged) Code:

    char szModel1 [256] = { "REQ$-$$$$-$$$$-$$$$-$$$$-$$$$" };
    size_t sizeModel1 = strlen ( szModel1 );

    char szModel2 [256] = { "REQ?-????-????-????-????-????" };
    size_t sizeModel2 = strlen ( szModel2 );

    Result on debugger on VC2003 & VC2005, I don't test it on 2008 & 2010 if some one can try... + szModel1 0x0012fc10 "REQ$-$$$$-$$$$-$$$$-$$$$-$$$$" char [256] + szModel2 0x0012fafc "REQ?-??~??~??~??~????" char [256] sizeModel1 29 unsigned int sizeModel2 21 unsigned int The content and the size of the string is bad with "??-" sequence... Strange :confused:

    ...

    P 1 Reply Last reply
    0
    • A achainard

      Test App : MFC dialog typed (unmanaged) Code:

      char szModel1 [256] = { "REQ$-$$$$-$$$$-$$$$-$$$$-$$$$" };
      size_t sizeModel1 = strlen ( szModel1 );

      char szModel2 [256] = { "REQ?-????-????-????-????-????" };
      size_t sizeModel2 = strlen ( szModel2 );

      Result on debugger on VC2003 & VC2005, I don't test it on 2008 & 2010 if some one can try... + szModel1 0x0012fc10 "REQ$-$$$$-$$$$-$$$$-$$$$-$$$$" char [256] + szModel2 0x0012fafc "REQ?-??~??~??~??~????" char [256] sizeModel1 29 unsigned int sizeModel2 21 unsigned int The content and the size of the string is bad with "??-" sequence... Strange :confused:

      ...

      P Offline
      P Offline
      Peter_in_2780
      wrote on last edited by
      #2

      Trigraphs strike again! See here for a recent discussion

      K 1 Reply Last reply
      0
      • P Peter_in_2780

        Trigraphs strike again! See here for a recent discussion

        K Offline
        K Offline
        Kevin Drzycimski
        wrote on last edited by
        #3

        really it is the good old trigraphs ;) i dont know if they abandoned them in C++0X, but at THAT time, they WERE useful nowadays, they are annoying :< look at this[^] for example =D

        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