January 15, 2005
For simple cross platform GUI projects, I was thinking of using SDWF with Winelib http://www.winehq.com/ on Linux. SDWF looks like a good design (nice job Stewart) and it seems I would only need to replace windows.d with something like wine.d when compiling on Linux.

Questions:

1) Would I have difficulty linking since Winelib uses C code with the WINAPI
calling convention (gcc on Linux can compile this stuff)?

thanks




January 17, 2005
Mark T wrote:
> For simple cross platform GUI projects, I was thinking of using SDWF with
> Winelib http://www.winehq.com/ on Linux. SDWF looks like a good design (nice job
> Stewart) and it seems I would only need to replace windows.d with something like
> wine.d when compiling on Linux.

I've just looked at it, and it seems an interesting idea - getting Windows apps to compile and/or run under Linux.  Though I wonder how they got on with copyright issues when it came to effectively rewriting Windows.  Anyway, if you can get it to work, thanks!

> Questions:
> 
> 1) Would I have difficulty linking since Winelib uses C code with the WINAPI
> calling convention (gcc on Linux can compile this stuff)?

That's the same as the regular Windows API uses?  AIUI this basically corresponds to extern(Windows) in D.  So I guess it's a question of whether DMD/GDC under Linux supports extern(Windows).  Does it?

Stewart.

-- 
My e-mail is valid but not my primary mailbox.  Please keep replies on the 'group where everyone may benefit.