User Profile

Collapse

Profile Sidebar

Collapse
scudemax
scudemax
Last Activity: Mar 7 '08, 05:06 AM
Joined: Mar 3 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • scudemax
    replied to sizeof(std::string) was 16 now 32
    in C
    Thanks, that answers my question!
    See more | Go to post

    Leave a comment:


  • scudemax
    replied to sizeof(std::string) was 16 now 32
    in C
    I don't know why it was done that way either. ...but it was. In order to deserialize the existing data properly, sizeof(std::str ing) must return 16 not 32.
    Any guidance will be appreciated.
    See more | Go to post

    Leave a comment:


  • scudemax
    started a topic sizeof(std::string) was 16 now 32
    in C

    sizeof(std::string) was 16 now 32

    I am having trouble porting some code from VC6 to VC8 (2005).
    I need to deserialize files that were written in VC6 and heavily use the std::string template.

    sizeof(std::str ing) will be 16 from vc6, but will be 32 from vc8. I need it to be 16.
    see the sample code below:

    CODE
    #include <string>

    int main(int argc, char* argv[])
    {
    std::string s = "";
    ...
    See more | Go to post
No activity results to display
Show More
Working...