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 = "";
int sz;
sz = sizeof(s);
printf("strings ize = %d\n",sz);
return 0;
}
/CODE
Thanks in advance,
Max
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 = "";
int sz;
sz = sizeof(s);
printf("strings ize = %d\n",sz);
return 0;
}
/CODE
Thanks in advance,
Max
Comment