Hi all

I am trying to understand the interface between WxHaskell and WxWidgets
a little better. WxDirect generates the file
wxcore/src/Graphics/UI/WXCore/WcxClassesAL.hs . In this file we have the
function:

inputStreamGetC :: InputStream  a ->  IO Char
inputStreamGetC _obj 
  = withCharResult $
    withObjectRef "inputStreamGetC" _obj $ \cobj__obj -> 
    wxInputStream_GetC cobj__obj  
foreign import ccall "wxInputStream_GetC" wxInputStream_GetC :: Ptr 
(TInputStream a) -> IO CWchar

Notice how the foreign call returns CWchar. But looking at the wxwidets
manual
http://wxwidgets.org/manuals/2.6/wx_wxinputstream.html#wxinputstreamgetc
WxInputStream::GetC returns char and not wide-char.

Is this not an error in WxHaskell? Or what am I missing?


Greetings,

Mads Lindstrøm




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxhaskell-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to