www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - OOP Windows

reply "DNewbie" <run3 myopera.com> writes:
Is there a D version of this type of tutorial?
https://www.relisoft.com/win32/index.htm
Jan 15 2012
next sibling parent reply Robert Clipsham <robert octarineparrot.com> writes:
On 16/01/2012 00:34, DNewbie wrote:
 Is there a D version of this type of tutorial?
 https://www.relisoft.com/win32/index.htm

This might be related to what you want: https://github.com/AndrejMitrovic/DWinProgramming -- Robert http://octarineparrot.com/
Jan 16 2012
parent bls <bizprac orange.fr> writes:
On 01/16/2012 09:07 AM, Andrej Mitrovic wrote:
 Oh I thought that tutorial was about MFC/ATL, but it seems to use the
 regular C API. I might look into this to add it to the DWinProgramming
 project if it's worthwhile.

I think it is worth a closer look. Especially Bartosz Milewski ActiveObject class. https://www.relisoft.com/win32/active.html OT Andrej The MONO folks are using Cairo to rebuild MS NET System.Drawing and System.Drawing2D. I wonder if this could be an approach for DGUI. I quess my question is : using CAIRO or GDI+ as Graphic engine for DGUI. TIA Bjoern
Jan 16 2012
prev sibling next sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 1/16/12, Robert Clipsham <robert octarineparrot.com> wrote:
 https://github.com/AndrejMitrovic/DWinProgramming

I think he's looking for an OOP approach, that code is basically C translated to D. There are some OOP libraries he can use, like DGUI or DFL. And there are some OOP wrappers for WinAPI somewhere (probably on dsource). Maybe http://pr.stewartsplace.org.uk/d/sdwf/ or http://www.dsource.org/projects/minwin. I think these two might be slightly outdated by now though.
Jan 16 2012
prev sibling next sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Oh I thought that tutorial was about MFC/ATL, but it seems to use the
regular C API. I might look into this to add it to the DWinProgramming
project if it's worthwhile.
Jan 16 2012
prev sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 1/16/12, bls <bizprac orange.fr> wrote:
 I quess my question is : using CAIRO or GDI+  as Graphic engine for DGUI.

Does DGUI intend to become cross-platform at any time? If not, then you could pick whichever system you're used to the most. You wouldn't be limited to just GDI+ if that's what DGUI will use, all you need for Cairo is a backbuffer to draw to which you can later blit to some widget area of DGUI.
Jan 16 2012