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
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 parent reply 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
parent reply 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
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
prev sibling parent reply "DNewbie" <run3 myopera.com> writes:
On Mon, Jan 16, 2012, at 05:59 PM, Andrej Mitrovic wrote:
 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.
Yes. I know a bit of C (not C++) and the Windows API. Now I'd like to learn more about OOP. That's what I've found so far, both are for C++ programmers http://win32-framework.sourceforge.net/ http://relisoft.com/win32/ Wel..I'm not sure. Should I learn C++ before D? Thank you everybody.
Jan 16 2012
parent "Jesse Phillips" <jessekphillips+D gmail.com> writes:
On Monday, 16 January 2012 at 21:52:09 UTC, DNewbie wrote:
 Yes. I know a bit of C (not C++) and the Windows API. Now I'd 
 like to learn more about OOP.
I'm not really sure if that is the best strategy for learning OOP, even in C++. Though I guess it could give the before an after effect of an API. But going with C++ you'd just be learning a lot about C++ and that overhead would mask the learning about OOP. D doesn't really have tutorials on OOP, that I know of. There are some examples about class and objects, but no true OOP tutorials (actually these are hard to find). If you want to do some GUI with OOP then DFL isn't bad, documentation and tutorial are exactly complete, but it might give you some thing to work with. And the Entice designer can help build some code for you to look at (I've used it to find what classes I need and their options :P) http://www.dprogramming.com/dfl.php
Jan 16 2012