FEFF behaviour

R

rpv30

Consider the folowing piece of code:

void main()
{
std::wstring testString;
testString = 0xfeff;
testString += L"123456";

__int64 testI64;

swscanf(testString.c_str(), L"%I64d", &testI64);
}

The swscanf() extracts the integer value from the string in Windows
2000, but it fails in Windows 2003. Could anybody please explain this
behaviour?

Regards
Prasanna Venkatesh R
 
S

Stuart Redmann

Consider the folowing piece of code:

void main()

First error: main _must_ return an int.
{
std::wstring testString;
testString = 0xfeff;
testString += L"123456";

__int64 testI64;

swscanf(testString.c_str(), L"%I64d", &testI64);
}

The swscanf() extracts the integer value from the string in Windows
2000, but it fails in Windows 2003. Could anybody please explain this
behaviour?

Second error: This newsgroup is not about which features exist on which
platform but about the C++ language. As far as I can see your source
isn't legal with respect to error one.
The newsgroup that will most probably answer your question could be
microsoft.public.vc.language.

Regards,
Stuart
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top