Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/09/21 in all areas

  1. 0x8000FFFF

    List of usable RegEx for source code

    You can combine two expressions into one, though. If I were you I'd at least use \s+ instead of spaces and \s*\( instead of .*\(
  2. Wagner Landgraf

    DUnit official source code

    Is there a place where we can find the "official" DUnit source code? It looks like there isn't one. I have DUnit source code here from difference sources - Delphi 10.4.2 Sydney, SourceForge SVN (https://svn.code.sf.net/p/dunit/svn/trunk), Delphi Leak Check (https://github.com/shadow-cs/delphi-leakcheck/tree/master/External/DUnit) and they are all different. It looks like the most "recent" version is the Delphi one. I need to do some modifications to DUnit and I was thinking about creating a GitHub repository to make it "official", applying changes from those sources when needed and accepting changes from contributors. Does anyone has a better idea? Does anyone know if the license allow me to do so (and also apply modifications made by Embarcadero from each Delphi version)?
  3. David Heffernan

    Build managed dll in Delphi

    Whether you opt for pinvoke or a COM server depends very much on what the interface surface area looks like. I don't think anybody can give you a valid recommendation without knowledge of that. Broadly speaking, for more larger and more complex interfaces, then a COM server may be preferable. For simpler interfaces, then p/invoke may be preferable. It is more effort to setup a COM server (especially if you have to learn COM), but having done so the coding on both sides will likely be simpler. For larger and more complex interfaces the startup cost of a COM server will yield time savings to offset that. For an interface that can be represented by a small number of functions, then you will never recover that startup cost, hence why p/invoke would win. To my mind at least those are the main factors to consider in your decision.
  4. Lajos Juhász

    10.4.2 LSP code completion error

    Unfortunately this RSP not even worth to read it there is no information in it it should be rejected.
  5. Hi... key points: 1. DBGrid -> TDataSource -> TQuery 2. SQL in Query Query.SQl.Text := 'select Bla from Bubb where Bla = :PAR' Query.ParamByName('PAR').AsString := 'Test'; Query.Open; * if you can...dont use LIKE. The database indizies are not used. * always work with parameters! See: https://en.wikipedia.org/wiki/SQL_injection ...finish.
  6. Der schöne Günther

    Build managed dll in Delphi

    Why not stick with a native dll and use that from .net? Platform Invoke (P/Invoke) | Microsoft Docs
  7. Anders Melander

    Build managed dll in Delphi

    Just write your DLL as an in-process COM server (or out-of-process if that suits your need better). .NET can use that directly.
  8. Version 37.0 of ProDelphi and ProDelphi64, the high accuracy profilers for Delphi are released now. New in this version is the support for Delphi 10.3 Rio. ProDelphi measures 32 bit applications and supports Delphi 5 .. 10.3 ProDelphi64 measures 64 bit applications and supports Delphi XE2 .. 10.3 Information about ProDelphi: http://www.prodelphi.de
×