[fdo-dev] NlsMsgGet and mixed char types
Greg Boone
greg.boone at autodesk.com
Wed Dec 13 12:40:03 EST 2006
Actually, all parameters in your example are wide strings.
As long as the parameter matches the placeholder in the message string
(such as %1$ls) the substitution will behave correctly.
Greg
-----Original Message-----
From: Mateusz Loskot [mailto:mateusz at loskot.net]
Sent: Tuesday, December 12, 2006 6:24 PM
To: fdo-dev
Subject: [fdo-dev] NlsMsgGet and mixed char types
Hi,
Can char with wide-char params be mixed when passed to NlsMsgGet4?
In FdoSmPhMySqlView::GetRootNameSql(), the message is of char* typem
but the last string is L"MySQL":
NlsMsgGet4(FDORDBMS_148,
"Cannot create view on %1$ls.%2$ls.%3$ls; %4$ls Provider does not
support views on objects on other database servers.",
(FdoString*) rootDatabase,
(FdoString*) rootOwner,
(FdoString*) rootObject,
L"MySQL")
Is there any magic in NlsMsgGet which can format string of
mixed char-length?
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at fdo.osgeo.org
For additional commands, e-mail: dev-help at fdo.osgeo.org
More information about the Fdo-internals
mailing list