By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,677 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,677 IT Pros & Developers. It's quick & easy.

"End of statement expected." error at Japanese message

P: n/a
Hi,
I'm using Windows 2000, English version, Microsoft Visual Studio.Net 2003.
I compile a project developed for Japanese client, on which there are some
Japanese messages. I have error "End of statement expected." at the line of
Japanese message.

How to make Visual Studio.Net 2003 understand that Japanese message?

Thanks
Tran Hong Quang
Apr 20 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
IMO You should provide the message texts in resources instead of your code.

Marcus Heege

"Tran Hong Quang" <Tr***********@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi,
I'm using Windows 2000, English version, Microsoft Visual Studio.Net 2003.
I compile a project developed for Japanese client, on which there are some
Japanese messages. I have error "End of statement expected." at the line
of
Japanese message.

How to make Visual Studio.Net 2003 understand that Japanese message?

Thanks
Tran Hong Quang

Apr 20 '06 #2

P: n/a
> IMO You should provide the message texts in resources instead of your code.

100% agree, this is the right thing to do.

But if you have something with lots of hard-coded strings, you need to be
able to go ahead.

So an option is to set the system locales to Japanese.
Make sure is the system locale, not the user locale (will require a reboot):
http://www.mihai-nita.net/20050611a.shtml
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Apr 21 '06 #3

P: n/a
"Mihai N." <nm**************@yahoo.com> wrote in message
news:Xn*******************@207.46.248.16...
IMO You should provide the message texts in resources instead of your
code.


100% agree, this is the right thing to do.

But if you have something with lots of hard-coded strings, you need to be
able to go ahead.

So an option is to set the system locales to Japanese.
Make sure is the system locale, not the user locale (will require a
reboot):
http://www.mihai-nita.net/20050611a.shtml
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email


Interesting. So VS.NET parses source code based on the system locale?
Apr 21 '06 #4

P: n/a
> Interesting. So VS.NET parses source code based on the system locale?
If this solved the problem, then yes :-)
Unicode with BOM is ok for C# and VB.NET, but this is not ok for C++
(and this is about the C++ standard, not a MS problem)
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Apr 22 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.