-
Content Count
2067 -
Joined
-
Last visited
-
Days Won
27
Everything posted by Attila Kovacs
-
SynEdit replacement for Delphi 10.1 Berlin / editor wanted for source code (not Delphi)
Attila Kovacs replied to Mr. Daniel's topic in VCL
try the "new SynEdit code" -
August 2020 GM Blog post
Attila Kovacs replied to Darian Miller's topic in Tips / Blogs / Tutorials / Videos
That one with the FireDAC is more interesting. We will definitely need more moderators 😛 -
usually the credentials are stolen from the client pc's where they are stored antivir's are crap multiple cold backups stored in different geographical locations are backups, everything else is just delusion
-
Looks like they are in getit not in the install: https://community.idera.com/developer-tools/b/blog/posts/getit-aqua-light-slate-vcl-style
-
How's that? Simple windows share? Or mounted drive?
-
I'm afraid you have to pay with bitcoins for this info 😛
-
High-level interface-based encapsulation of Direct2D Svg functionality
Attila Kovacs replied to pyscripter's topic in Windows API
you should paint a background to the metafile canvas first, or copy (play) the metafile to its final destination where you already have a background (maybe you already doing that, in this case try to save it to a file and look into it with a wmf viewer, maybe you find something) -
High-level interface-based encapsulation of Direct2D Svg functionality
Attila Kovacs replied to pyscripter's topic in Windows API
good job! coupe of things: D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT is first introduced in Delphi 20.0, maybe you should declare it somewhere with a conditional TOSVersion.Build returns 0 on my system, reporting wrongly that SVG is not supported o.O functions: -SetId() -CreateChild() -IsAttributeSpecified() -RemoveAttribute() -SetAttributeValue() *all -GetAttributeValue() *all? -GetAttributeValueLength() -FindElementById() -CreatePaint() should have LPCWSTR parameters instead of LPWSTR. (just to be pedantic) -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
btw. in the header and also on the screenshot from Mahdi the first parameters are PCWSTR (LPCWSTR) (const) and not always PWSTR (LPWSTR). this however makes no difference, at least at the moment, as they are defined the same in delphi -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
opacity : single := 0.5; Element.SetAttributeValue('opacity', D2D1_SVG_ATTRIBUTE_POD_TYPE_FLOAT, @opacity, SizeOf(opacity)); where element = 'svg' if this was the question -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
@pyscripter yup, was just playing around, it's also RGBA so the original 1, 0, 0, 0 did also not make much sense, mentioned that already earlier -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
@Kas Ob. is right. With his order this works too: Element.SetAttributeValue('fill', D2D1_SVG_ATTRIBUTE_STRING_TYPE_SVG, '#FF0000'); -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
@Kas Ob. your version AV's here, I get the recoloring 😄 what now hm, sorry, it works, so declare in reverse order? -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
@pyscripter d2missing again without the reformatting, sorry 😉 D2DMissing.7z btw. he is using IDA btw2. RecolorSubtree(Root, D2D1ColorF(1, 0, 0, 0)); should be the other way, 0,0,0,1, rgba -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
ofc some of the const's I had to declare as it did not compile at the beginning, Berlin U2. svg.7z -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
yippiii, it works. nice one @Mahdi Safsafi -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
As I first mentioned the in the AV reading address 0x00000001, the "1" is the parameter D2D1_SVG_ATTRIBUTE_POD_TYPE_COLOR. Change it to D2D1_SVG_ATTRIBUTE_POD_TYPE_FILL_MODE and you will get AV reading address 0x00000002. So I thought that the wrong "SetAttributeValue" is called, so I changed the order of the "SetAttributeValue"'s => swapped the last two. But as I can't see any changes in the image and @Mahdi Safsafi showed in IDA that this is a completely different call, I'm not sure what is going on. But it's a good start for you to sort it out. -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
looks like I'm being ignored here. change the order of the last 2 SetAttributeValue()'s in the interface, no AV but I can't see any changes, maybe you would know why and see if it helps. -
Translation of C headers.
Attila Kovacs replied to pyscripter's topic in RTL and Delphi Object Pascal
why don't you debug into the dll? "read of address 0x000000001" where "0x000000001" is D2D1_SVG_ATTRIBUTE_POD_TYPE_COLOR so just my 2 cent's the overloads are mixed up -
The first time I saw your idea I did not see the benefits but after adding some useful information to the form it could be a great extension though. However, I'm not the OTA guy, so my version is using heavily the IDE itself, but the most could be achieved through the official way. (Assumed you will get the plugin API sources for Parnassus, which is not anymore available since emba purchased it....) or a bit more info:
-
Help with string extraction function
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
yes, less, and slower, the rest is the same codegen -> less asm, slower exec, how's that? OoOE? Aligning? -
Help with string extraction function
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
by the way, if you look at the last code pasted by me, if you remove if len = 0 then exit(S); at the beginning, it's the same codegen and will be ~4% slower. Of course testing with non-empty input. Early triggering of OoOE? -
same here, "Sorry, an error occurred trying to log you in - please try again." however I'm fine with it
-
if you don't have "Plan B", you should not try to catch exceptions
-
Why should I use good source control versioning system?
Attila Kovacs replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
Like Delphi?