|
-
March 1st, 2006, 07:36 AM
#1
Compilation error with backslash
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|