Hi,

While compiling my file in VC++, I get the errors listed below with reference to the following line of code -

wsprintf( szDesc,L"DSN=%s\xFF Database=MyDataBase Server\xFF Description=MyDataBase MyData MySource\xFF Server=%s\xFF Trusted_Connection=yes\xFF \xFF ",szDSNName,strServer);

Error -
error C2002: invalid wide-character constant

My project settings have UNICODE for pre-processor directives. My user locale and default locale are both Japanese while my OS is English.
The backslash character appears as a yen symbol in my file.

The same file compiles without issues on another machine in our group.

Can someone please explain what could be the reason ?

Thanks.