469,917 Members | 1,848 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

Session.LCID / SetLocale() don't effect CreateObject()?

Can anyone explain why neither ASP Session.LCID nor
VBScript SetLocale() effect the locale of a VB6-based COM
object that is instantiated via Server.CreateObject()?
If I set Session.LCID, then create a VB-based object, the
object still seems to use the system LCID for formatting
dates & numbers.

Using FormatDateTime() within the VBScript of the ASP
*does* work -- It's just that created objects don't seem
to inherit the locale.

I tried using Win32 SetThreadLocale() within the VB
object, and it does change the thread's locale, but that
still doesn't seem to effect the result of VB

How else could I dynamically change the effective locale
of my ASP and VB6-based COM objects to produce date &
number formats for any given locale?
Jul 19 '05 #1
0 3009

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Claudio Cezar | last post: by
6 posts views Thread by J. Baute | last post: by
3 posts views Thread by J Trauntvein | last post: by
reply views Thread by ubi_comp | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.