
----- Original Message -----
From: "Sven Panne"
Am Freitag, 1. Dezember 2006 13:47 schrieb Pepe Gallardo:
As I said before, I renamed freeglut.dll to glut32.dll, but when I run my program I get "Exception: user error (unknown GLUT call glutMainLoopEvent, check for freeglut ... I really need to use mainLoopEvent.
Hmmm, are you really sure that the program is picking up the right glut32.dll? I don't know the exact search order on Windows (first the app dir, then under %WINDOWS%\system32?), but having a "normal" GLUT lying around could be an explanation...
I am sure that I am loading the right dll (it is in my workind directory, and I have changed the mainLoop C function to print a message on the console, and it does). I was a bit confussed as function "glutVersion" was reporting "GLUT 3.7", but that is because it is just guessing and getProcAddressInternal is not working. To confirm this, I got a copy of Extension.hs and loaded it: ghci -package GLUT -fffi Extensions.hs then I get: *Graphics.UI.GLUT.Extensions> getProcAddressInternal "glutSetOption" 0x00000000 *Graphics.UI.GLUT.Extensions> getProcAddressInternal "glutSetWindowStayOnTop" 0x00000000 By the way, I get the same behaviour when using the original glut32.dll. Any help?
Cheers, S.