本文介绍了在C / C ++中将Com Environment更改为en_us的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我们有一个C#projekt和几个C / C ++项目。
we have a C# projekt and several C/C++ projects.
在C#项目中我们做
CultureInfo originalCulture = Thread.CurrentThread.CurrentCulture;
CultureInfo originalUICulture = Thread.CurrentThread.CurrentUICulture;
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrenUItCulture = new CultureInfo("en-US");
/*
Set nlv dependent attibut of an interop class with an english value
// interop class uses internally com
*/
Thread.CurrentThread.CurrentCulture = originalCulture;
Thread.CurrentThread.CurrenUItCulture = originalUICulture;
现在我必须在我们的一个C / C ++项目中做类似的事情。
Now I must do something similar in one of our C/C++ Projects.
而不是我们使用的互操作OLE自动化,但我们必须确保在设置Attribut时期望en_us。
Instead of the interop we use OLE Automation, but we must ensure that en_us is expected when we set the Attribut .
如何在C / C ++中执行此操作?
How can I do this in C/C++ ?
  ; tia
tia
Hendrik Schmieder
Hendrik Schmieder
推荐答案
这篇关于在C / C ++中将Com Environment更改为en_us的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!