Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 12/29/22 in all areas

  1. Hello, I've got some good news and sort of a Christmas present: What is it? Delphi Code Coverage Wizard V2.0. A GUI to make using the CodeCoverage.exe tool easier. Oh and what please is code coverage? With code coverage one can find out whether the unit tests one has (I do hope you have some!) really cover all of your code or if you missed some scenarious. If you still are unsure how that looks like you might have a look at the screenshots provided at the bottom of the project's github page here: https://github.com/MHumm/delphi-code...ge-wizard-plus Now where to get this fine tool? https://github.com/MHumm/delphi-code...eases/tag/V2.0 Hopefully via GetIt package manager soon as well. That one currently still contains V1.1 A list of the improvements made between V1.1 and V2.0 is found on the release URL above. Now enjoy it TurboMagic
  2. Jim McKeeth

    Delphi 11.2 - Ubuntu Debugger error

    I created a setup script for Ubuntu. I just updated it to address the Python 3.6 dependency issue. https://embt.co/Ubuntu4Delphi22 I've tested it on several different installs, and it works great. If you only want to fix the Python 3.6 dependency issue: You can use the following sudo apt install python3 libpython3-dev -y ln -sf `ls -1 /usr/lib/x86_64-linux-gnu/libpython3.*.so.1.0 | tail -1` ~/PAServer-22.0/lldb/lib/libpython3.so The first line ensures you have Python3 installed, but if you have a recent Ubuntu, that shouldn't be an issue. I usually had Python 3.10 installed. The second line looks in /usr/lib/x86_64-linux-gnu/ for a file matching the mask libpython3.*.so.1.0 and then updates the symbolic link Note: It assumes you installed PAServer in the folder ~/PAServer-22.0 Good luck!
  3. aehimself

    AE BDSLauncher

    For the time being this is a teaser only, sources will be published on GitHub as soon as I finish up the rough edges. Due to the recent success of detecting and interacting with Delphi IDE versions / instances I decided to put together a new BDSLauncher, which allows you to set up rules to automatically decide which version and which instance of Delphi you want to open a Delphi source file with. If started without any parameters, the rule editor main window will show up: Here a list of file masks can be provided. If the file which is about to be open matches any of these, it will be opened in the version selected under. There are situations when a project has to be open for a .pas (.dfm more likely) to appear correctly. To support this, you can set a string which has to be contained in the IDE caption for it to be selected. If this is empty or there was no instances found with this criteria, a new instance will be launched with the parameters you specify (should be the main project .dproj / .dpk). If a parameter is specified (and the file indeed exists) two things can happen. Either a rule will decide which version / instance the selected file should be started in, or if there's none a selector will appear: If more rules would apply to the source file but the specified instance is not found, the last will be selected alphabetically. In case any rule was selected, no window is shown, only the IDE is launched and / or the source file is opened and the launcher will close shortly after. In theory, the new launcher should support all Delphi versions from 6 and up, however the DDE component used (to do the heavy lifting) was only tested with 7 and 10, 10.1, 10.2, 10.4 and 11. Settings are stored in AppData, so each user with access to the same PC can have different rules set up. What is left: Deeper testing after first impressions (especially with more Delphi versions. There are a few which I was forced to miss) Button / installer to change file associations to itself instead of the original BDSLauncher. This could also be used to reset these associations if a Delphi (un)installer messed these up More options (e.g. cmd/powershell/PascalScript scripting) to decide between versions / instances Allow manual rule ordering instead of the current alphabetical Add icons and / or redesign UI to be a bit more user friendly... It's kind of late now here - hence the teaser only - but I wanted to let you guys know that this is coming. Expect a new post with an alpha version in the upcoming days.
  4. TurboMagic

    Delphi Code Coverage WIzard Plus V2.0 released

    Next useful info: it is available via GetIt now as well!
  5. programmerdelphi2k

    Adding phone numbers in addressbook

    do you try some like this: var Contact: TAddressBookContact; Phones: TContactPhones; begin Contact := AddressBook1.CreateContact(AddressBook1.DefaultSource); try // Add a mobile phone number Phones := TContactPhones.Create; try Phones.AddPhone(TContactPhone.TLabelKind.Mobile, '+33-6-46-51-3531'); Contact.Phones := Phones; finally Phones.Free; end; // Save the newly created contact AddressBook1.SaveContact(Contact); finally Contact.Free; end; end;
  6. aehimself

    Delphi & WM_DDE_INITIATE

    My idea seems to be correct after all, I should add my daughter right next to the rubber duck on my desk. I don't know what happened when I tried to run the code under D7 but if I change every call to the WinApi "A" version in D10.4.2 it simply works... And yes, I can confirm... Delphi 7 supports DDE, needs the service "DELPHI32" and the topic "system". It just has to be ANSI, not Unicode.
×