About SetNatDLL

We encourage new members to introduce themselves here. Get to know one another and share your interests.
Post Reply
User avatar
vzeljko
Posts: 35
Joined: Wed Sep 28, 2016 8:02 pm

About SetNatDLL

Post 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
User avatar
robert
Posts: 4558
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

About SetNatDLL

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
vzeljko
Posts: 35
Joined: Wed Sep 28, 2016 8:02 pm

About SetNatDLL

Post by vzeljko »

Understood. Thanks Robert.

Zeljko
Post Reply