Hi,

try using getModuleHandle -- see the graphical Win32 "Hello, World"
example available via the ghc-win32 homepage,

   http://www.dcs.gla.ac.uk/~sof/ghc-win32.html

It demos how to use it.

As you've gathered, there's no separate user doc for the Win32 library. 
Consult any Win32 programming text (e.g., Petzold) for API details.

--sigbjorn

> -----Original Message-----
> From: Axel Simon [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 25, 1999 6:29 AM
> To: [EMAIL PROTECTED]
> Subject: Programming Win32
> 
> 
> Hi all,
> 
> I tried to write a Win32 program in with GHC 4.05 but I am 
> stumbeling over
> the definition
> 
> type WNDCLASS =
>  (ClassStyle,  -- style
>   HINSTANCE,   -- hInstance
>   MbHICON,     -- hIcon
>   MbHCURSOR,   -- hCursor
>   MbHBRUSH,    -- hbrBackground
>   MbLPCSTR,    -- lpszMenuName
>   ClassName)   -- lpszClassName
> 
> which looks fine if I'd knew where to get hInstance. main 
> doesn't give it
> to me. Can specify something like
> 
> winMain hInstance ... =
> 
> as my main program entry? Or a more sensible question: Is there any
> userguide on how to use the Win32 library?
> 
> Cheers,
> Axel.
> 
> 
> 

Reply via email to