xsharp.eu • About SetNatDLL
Page 1 of 1

About SetNatDLL

Posted: Thu Sep 03, 2020 3:56 pm
by vzeljko
In X# runtime documentation there is sample of SetNatDLL usage for Visual Objects.
For X# there is an explanation:
"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."
And there is no saple of that "switch".
Should I write SetNatDLL("GERMAN.DLL") or SetNatDLL("GERMAN")

Zeljko

About SetNatDLL

Posted: Thu Sep 03, 2020 4:28 pm
by robert
Zeljko,
You can use it with or without DLL extension. The runtime will strip the extension and will just use the name of file.
See:
https://github.com/X-Sharp/XSharpPublic ... t.prg#L282

Robert

About SetNatDLL

Posted: Thu Sep 03, 2020 4:30 pm
by vzeljko
Understood. Thanks Robert.

Zeljko