Re: Unicode setting question

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> ha scritto nel messaggio
news:8tls34thu00o4tuuhhribrkg04msg65u81@xxxxxxxxxx
And why is specifing L"string" bad? It strikes me that you should be
doing this already,
and failure to do it means you are programming in an obsolete style.
Actually, I don't
write L"string", I write _T("string"),

It would be great if the IDE had some IntelliSense feature, such that when
we just finish to type a string "...", the IDE immediately decorates that
string with L or _T() (based on some configuration option).

I would also prefer if default strings literals are assumed Unicode instead
of ANSI/MBCS (i.e. "string" == L"string"), and an explicit prefix would be
used to indicate ANSI/MBCS (i.e. @"string" or A"string"...).
But that seems to break back-compatibility and cross-platform feature of
C/C++...


Of course, a real program does not actually have any
native language strings in it; all language-specific strings are in the
STRINGTABLE, so
they can be localized.

Yes, using STRINGTABLE instead of string literals in code is a key point.

Giovanni


.



Relevant Pages

  • Re: Cannot stop command line build from AddIn
    ... method for command line build and "Build.Cancel" for IDE build. ... private AddIn addInInstance; ... public void BuildEvents_OnBuildProjConfigDone(string project, string ...
    (microsoft.public.dotnet.general)
  • Re: Trial version
    ... outside of the IDE than just running from inside the IDE. ... When you ported your .NET code to PureBasic you illustrated the slow string ... ; dblDouble = 9876.54321 ... For intDouble = 0 To 1000 ...
    (comp.lang.basic.powerbasic)
  • Re: Projekt Größe
    ... In der IDE kein ... > Fehler, als Native-Code.exe Fehler. ... Dieser String wurde im konkreten Fall ... 15 MB kompilierten P-Code in mehreren DLLs / OCXen. ...
    (microsoft.public.de.vb)
  • Re: Tired. Annoyed. Really need help with Control serialization issues. Please...
    ... rather than take care of it in the IDE. ... Some method that Serialize() will be looking for at run-time? ... simpler TypeConverter -- something that parses a simpler string ... > and with the TypeConverter attributes removed. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Unbelieveable code, it produces one result in VB6 run and another if compiled in a exe file ????
    ... That works fine, Kevin, both in the IDE and as a compiled exe on both of ... string with all the leading space values in both cases (IDE and compiled), ... Dim Str As String ...
    (microsoft.public.vb.general.discussion)