The MASM Forum

General => The Workshop => Topic started by: jj2007 on May 30, 2016, 09:41:03 AM

Title: GdipAddPathPath
Post by: jj2007 on May 30, 2016, 09:41:03 AM
Has anybody ever used, or tried to use, GdipAddPathPath?
Title: Re: GdipAddPathPath
Post by: qWord on May 30, 2016, 02:02:35 PM
Yes.
Title: Re: GdipAddPathPath
Post by: jj2007 on May 30, 2016, 04:14:11 PM
Congrats :t
Title: Re: GdipAddPathPath
Post by: K_F on May 31, 2016, 11:06:10 PM
Couldn't get it to work, so I manually wrote the procedure !
Title: Re: GdipAddPathPath
Post by: jj2007 on May 31, 2016, 11:34:46 PM
Can't get it to build with Masm, but thanks anyway, K_F.
In the meantime, I also solved the mystery.
Title: Re: GdipAddPathPath
Post by: Zen on June 01, 2016, 07:41:12 AM
What mystery ???
What mystery ???
Title: Re: GdipAddPathPath
Post by: mineiro on June 01, 2016, 08:10:25 AM
tchan tchan tchan tchan
tchan tchan tchan tchan
Beethoven

Have found this example on wine, not sure if helps
https://www.winehq.org/pipermail/wine-patches/2007-July/041404.html
Title: Re: GdipAddPathPath
Post by: jj2007 on June 01, 2016, 09:05:46 AM
Quote from: Zen on June 01, 2016, 07:41:12 AM
What mystery ???
What mystery ???

The mystery was which kind of parameters the bloody function expects 8)

Working example (pure Masm32) attached, based on José Roca's code (http://forum.powerbasic.com/forum/jose-s-corner/source-code-ab/51254-gdi-flat-api-graphicspath-functions-examples).

Note the extreme clarity of the official M$ documentation:
GpStatus WINGDIPAPI GdipAddPathPath(GpPath *path, GDIPCONST GpPath* addingPath, BOOL connect)

@mineiro: thanks
Title: Re: GdipAddPathPath
Post by: Zen on June 01, 2016, 09:41:35 AM
Uhhh,...sorry, JOCHEN,
I thought you were hijacking your own thread. :icon_eek:
...I'll bet DAVE knows,...
Title: Re: GdipAddPathPath
Post by: fearless on June 01, 2016, 10:22:50 AM
José Roca's site is very handy for all the code examples of the GDI+ functions
Title: Re: GdipAddPathPath
Post by: jj2007 on June 01, 2016, 05:56:29 PM
Quote from: fearless on June 01, 2016, 10:22:50 AM
José Roca's site is very handy for all the code examples of the GDI+ functions

Indeed, and not only for Gdi+

In case you speak French, there is an even better Gdi+ resource here (http://purebasic.developpez.com/tutoriels/gdi/#LVIII-1): The "Téléchargez l'archive" link points to a chm file that is very, very rich - most probably the best Gdi+ resource available on the web, made by Denis of the PureBasic forum :t

For example, where else would you find an animated gif showing the effect of paras for GdipSetAdjustableArrowCapMiddleInset?? This is fantastic work, and if you are not too old, this should be a real incentive to learn French :greensml: