On 11/7/06, Neil Mitchell <[EMAIL PROTECTED]> wrote:
foreign import stdcall unsafe "windows.h GetModuleFileNameA"
 getModuleFileName :: Ptr () -> CString -> Int -> IO Int32

That's the only one. Wouldn't it make more sense to put this FFI call
in Cabal (which is always there, and always required) instead of
Win32, which isn't an existing dependancy?

Just a sidenote about this.

If you import this code into Cabal, please consider using uncode
version of this function
GetModuleFileNameW (altghough that has slight problems with windows me and older
if they don't have unicode extensions installed.)

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getmodulefilename.asp

Best regards,
Esa
_______________________________________________
cabal-devel mailing list
cabal-devel@haskell.org
http://www.haskell.org/mailman/listinfo/cabal-devel

Reply via email to