digitalmars.D.learn - OOP Windows
- DNewbie (2/2) Jan 15 2012 Is there a D version of this type of tutorial?
- Robert Clipsham (6/8) Jan 16 2012 This might be related to what you want:
- Andrej Mitrovic (8/9) Jan 16 2012 I think he's looking for an OOP approach, that code is basically C
- Andrej Mitrovic (3/3) Jan 16 2012 Oh I thought that tutorial was about MFC/ATL, but it seems to use the
- bls (9/12) Jan 16 2012 I think it is worth a closer look. Especially Bartosz Milewski
- Andrej Mitrovic (6/7) Jan 16 2012 Does DGUI intend to become cross-platform at any time? If not, then
- DNewbie (6/18) Jan 16 2012 Yes. I know a bit of C (not C++) and the Windows API. Now I'd like to le...
- Jesse Phillips (15/17) Jan 16 2012 I'm not really sure if that is the best strategy for learning
Is there a D version of this type of tutorial? https://www.relisoft.com/win32/index.htm
Jan 15 2012
On 16/01/2012 00:34, DNewbie wrote:Is there a D version of this type of tutorial? https://www.relisoft.com/win32/index.htmThis might be related to what you want: https://github.com/AndrejMitrovic/DWinProgramming -- Robert http://octarineparrot.com/
Jan 16 2012
On 1/16/12, Robert Clipsham <robert octarineparrot.com> wrote:https://github.com/AndrejMitrovic/DWinProgrammingI 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
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
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
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
On Mon, Jan 16, 2012, at 05:59 PM, Andrej Mitrovic wrote:On 1/16/12, Robert Clipsham <robert octarineparrot.com> wrote: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.https://github.com/AndrejMitrovic/DWinProgrammingI 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
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