View mode: basic / threaded / horizontal-split · Log in · Help
January 16, 2012
OOP Windows
Is there a D version of this type of tutorial?
https://www.relisoft.com/win32/index.htm
January 16, 2012
Re: OOP Windows
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/
January 16, 2012
Re: OOP Windows
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.
January 16, 2012
Re: OOP Windows
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.
January 16, 2012
Re: OOP Windows
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
January 16, 2012
Re: OOP Windows
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.
Top | Discussion index | About this forum | D home