Re: Importc by ordinal instead of name? (Windows)

2018-08-07 Thread Araq
You have to resort to LoadLibrary indeed, but you could also patch `lib/pure/dynlib.nim` and a Windows specific extension. And create a PR please. :-)

Importc by ordinal instead of name? (Windows)

2018-08-07 Thread jdm
Hi, I would like to call the following Windows DLL function from Nim (here the declaration for C#): > [DllImport("uxtheme.dll", EntryPoint = "#96", CharSet = CharSet.Unicode, > PreserveSig = true)] internal static extern uint > GetImmersiveColorTypeFromName( string name); The problem is, the