www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D - SDWF with Wine?

reply Mark T <Mark_member pathlink.com> writes:
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
Jan 15 2005
parent Stewart Gordon <smjg_1998 yahoo.com> writes:
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.
Jan 17 2005