Functions.SetNatDLL 方法 | |
激活用于国家相关操作和消息的新DLL。
命名空间:
XSharp.Core
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 FUNCTION SetNatDLL(
cNewDLL AS STRING
) AS LOGIC
public static bool SetNatDLL(
string cNewDLL
)
查看代码参数
- cNewDLL
- 类型:String
要使用的新DLL的名称。
返回值
类型:
Boolean
如果成功,则返回TRUE;否则返回FALSE。
备注
国家相关操作的默认库是VO28NAT.DLL。SetNatDLL()禁用默认DLL并加载指定的DLLcNewDLL,该DLL在下次调用SetNatDLL()之前是活动的。
备注
In Visual Objects the nation DLL is an external DLL. For X# there are no separate
nation DLL. The nation support code is integrated in XSharp.Core.DLL.
For compatibility you can still use the SetNatDLL() function to switch to another
nation module.
The available nation modules are (just like in Visual Objects):
"BRAZIL", "CROATIA", "CZECH852", "CZECH895", "DANISH", "DUTCH", "FINNISH",
"FRENCH", "GENERIC", "GERMAN", "GERMAN2", "HUNG852", "HUNGCWI", "ITALIAN",
"NORWEGN", "POL-ISO", "POL-MAZ", "POL852", "PORT850", "PORT860", "ROMANIA",
"RUSSIAN", "SERBIA", "SL-W-95", "SL-W-AS7", "SL-W-EE", "SLOV852", "SLOV895",
"SPANISH", "SWEDISH", "TURKISH", "UK"
You may specify a DLL name with full path. The Runtime will strip the path and extension
from the file name and will look for one of the names listed above.
The nation DLL name is NOT case sensitive.
示例
此示例将DLL CAVONT20.GER设置为国家相关操作:
1? GetNatDLL()
2? SetNatDLL("GERMAN.DLL")
3? GetNatDLL()
参见