resumeThread cannot find the thread! (GHC/HDirect)

Reuben Thomas
Wed, 13 Jun 2001 06:46:11 -0700

You need to use H/Direct 0.17, which unfortunately you have to compile
from source. 0.16 (which I presume you're using) doesn't work with GHC

I checked your example against the CVS HEAD version of H/Direct, and it
worked fine, except that I had to make the following changes (to correct
unintentional errors, I presume):

+ #include <windows.h>
- BOOL WINAPI DllMain(args...) { return TRUE; }
+ BOOL WINAPI DllMain(args) { return TRUE; }
int __declspec(dllexport) incr(int x) { return x + 1; }

module Incr { [pure]int incr([in]int); }

module Main(main) where
+ import Incr
main =3D print (incr 2)