Thanks for the clarification on casting.
It has been a while, but I used nimble to get the oldwinapi package and then I
just put
import windows
at the top of my source. However I am on a Linux box using wine, so I also have
to define a nim.cfg in my source folder:
i386.windows.gcc.path = "/usr/bin"
i386.windows.gcc.exe = "i686-w64-mingw32-gcc"
i386.windows.gcc.linkerexe = "i686-w64-mingw32-gcc"
which meant I must have installed the mingw32 tool chain (I don't exactly
remember - I'm 76 so sometimes suffer from oldsheimers)
I also have a Makefile entry like:
msnBare.exe: msnBare.nim
nim --cpu:i386 --os:windows -o:msnBare.exe -r c msnBare.nim
Sorry if that is not much help. I would love to see an extended tutorial on
using oldwinapi - I am working mostly blind.