如何在 Visual Basic 6.0 应用程序中设置区域选项?
我现在有一个处于生产环境中的VB6应用程序,该应用程序正在读取电脑的区域设置;但现在,我需要为应用程序设置另一个区域设置,而不更改电脑的设置。
如何在全球范围内设置新的区域设置以将影响降至最低?有没有任何配置方法(或类似的方法)可以做到这一点?
I have a VB6's Application that is in production environment right now, this application is reading the pc's Regional Settings; but now, I need to set another Regional Settings for the application without change the pc's settings.
How can I set the new Regional Settings globally with the lowest impact? Is there any configuration method (or something like that) for do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自 http://www.experts-exchange.com/Programming/Languages /Visual_Basic/Q_21841979.html
From http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_21841979.html
根据您实际想要实现的目标,您可以尝试在启动过程中调用
SetThreadLocale()
。Dependsing on what you're actually trying to achieve, you can try calling
SetThreadLocale()
in your startup procedure.