From: some dude on

Pretty slick, can it be made portable?
From: Goran on
On Feb 5, 1:38 am, some dude <n...(a)no.com> wrote:
> Pretty slick, can it be made portable?

What, to port to e.g. Unix clone? Haha, good one. No, not with MFC^.
Try Qt.

^ Technically, it _is_ possible - just ;-) port relevant MFC parts to
another window manager (or make one for your target platform.

Goran.
From: some dude on
I tried Qt the other day. QString AString = L"string"; was an error.
From: Giovanni Dicanio on
"some dude" <no(a)no.com> ha scritto nel messaggio
news:#eEjq6lpKHA.3912(a)TK2MSFTNGP06.phx.gbl...
> I tried Qt the other day. QString AString = L"string"; was an error.

Reading from here:

http://doc.trolltech.com/4.6/qstring.html

it seems to me that QString offers a constructor which takes a const char *,
but not a wchar_t*...

Giovanni


From: Giovanni Dicanio on
> http://doc.trolltech.com/4.6/qstring.html
>
> it seems to me that QString offers a constructor which takes a const char
> *, but not a wchar_t*...

Or to be more accurate, the QChar * (i.e. Unicode version) constructor takes
an additional size parameter:

http://doc.trolltech.com/4.6/qstring.html#QString-2

BTW: As Mihai several times wrote here, the best thing to do for
internationalization is to put string literals in resources instead of
embedding them in source code.

Giovanni