Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, October 2007
ActiveQt: Overriding LOCALE_USER_DEFAULT


Message 1 in thread

Hello!
I'm re-writing some code for MSVC that automates Excel application.
Aim is to replace MSVC's #imports with ActiveQt. All is fine except
for one thing: method setting cell values to dates and floats (and
perhaps currencies) behaves differently. I.e. in one case Excel
recognizes "01.01.07" as date and pastes "01.01.2007" instead and in
other cases it doesn't. Same method, same parameters but different
behavior depending on it's #imports or ActiveQt.

I've been searching on the internet a bit and I've found that behavior
is affected by Invoke's lcid parameter. There were proposals to set
lcid to UK's one.

ActiveQt calls Invoke with LOCALE_USER_DEFAULT for lcid. Is there way
to change it? Maybe temporarly.

--
 [ signature omitted ]