Troubles with CXTPReportControlLocale::RefreshActi |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
Posted: 23 December 2006 at 6:12pm |
Hi;
after migrating to toolkit version 10.4 we got troubles with all of our language independant conversion functions. After a few minutes of debugging I found out that the CXTPReportControl ctor calls CXTPReportControlLocale::RefreshActiveLCID(); that further calls _tsetlocale() with the currently selected user locales.
This breaks most of our existing formatting and conversion code because the code depends on "C" locale.
Is it possible to change and/or switch off this - unwanted - behaviour without creating a bunch of new classes?
Thanks in advance
Martin
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
Well, agree that this is a problem -- we'll remove _tsetlocale calls for future versions and correct all the related code. To avoid a problem for now, you can simply comment the body of RefreshActiveLCID() and rebuild the toolkit. -- WBR, Serge |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi Serge;
Does this change have any adverse effect on existing code? Where, what??
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
_tsetlocale() was used to set locale other than English for date/time formating (COleDateTime::Format). You can easily avoid this by overriding some methods like GetCaption(). _tsetlocale() call was actually added as an improvement, but unfortunately it appeared to raise the issue instead. It is safe to comment it. For future versions we'll use another localized formating methods instead of _tsetlocale and COleDateTime::Format. -- WBR, Serge |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi Serge,
Thanks for your comments!
BTW I like the toolkit and its stability...
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |