设置COM DLL的语言环境 [英] Setting locale for a COM DLL

查看:57
本文介绍了设置COM DLL的语言环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我有一个C ++(MFC)应用程序。我使用的是一个COM库(在VB6中制作)。我没有这个库的代码,我只是使用它。我使用该库中的功能 最终会在文本
文件中写入数字。我的问题是这些数字是以当前的语言环境格式写的。例如,小数点并不总是"。",而是在Windows区域设置中设置当前小数符号。有没有办法为
设置我正在使用的COM DLL的语言环境?



任何帮助都将受到赞赏。



非常感谢。

解决方案

我怀疑如果不修改VB 6.0中的代码就可以更改它组件,但您可能想在VB 6.0论坛中提出这个问题。此论坛主要用于Visual Basic .NET。


http:// vbcity .com / forums / default.aspx?GroupID = 11


http://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier



Dear all,

I have an application in C++ (MFC). There is a COM library that I use (that is made in VB6). I do not have the code for this library, I just use it. There is a function in this library that I use that eventually writes numbers in a text file. My problem is that these numbers are written in in the current locale format. For example, the decimal point is not always ".", but is as the current decimal symbol is set in the Windows Regional Settings. It there any work around to set the locale for the COM DLL that I am using?

Any help will be appreciated.

Thank you so much.

解决方案

I doubt that it can be changed without modifying the code in the VB 6.0 component, but you may want to ask this question in a VB 6.0 forum. This forum is primarily for Visual Basic .NET.

http://vbcity.com/forums/default.aspx?GroupID=11

http://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier


这篇关于设置COM DLL的语言环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆