Jump to content

Patrick PREMARTIN

Members
  • Content Count

    312
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Patrick PREMARTIN

  1. Patrick PREMARTIN

    12.3 or 13/14 as next?

    I vote for a nocode quantum IDE. Why limiting to a number of bits ? It's so MS Dos !
  2. Patrick PREMARTIN

    12.3 or 13/14 as next?

    Not sure we have an access to previous opened projects in the Open Tools API , but you can create an extension for the Welcome page if you want. You have a sample in the RAD Studio samples folder.
  3. Patrick PREMARTIN

    12.3 or 13/14 as next?

    Don't be afraid of IDE changes if anything happen in 12.3. Marco spoiled a little at the end of the birthday webinar. Just read between lines and don't forgot that no roadmap is public. Nothing is sure until an official announce. You can simply wait for Mars 13th webinar.
  4. Patrick PREMARTIN

    Delphi Community Edition

    The problem is perhaps linked to the license activation and a conflict with the Berlin license (even if it should not). Check in the LicenseManager what is registered and remove all unnecessary licenses (including the CE license). Uninstall the CE version, reboot and try a new installation.
  5. Patrick PREMARTIN

    Delphi TOIOBE index lifted in May 2022?

    Don't forget TIOBE is based on "search for answers". Python is the top because programming in Python is a nightmare when you start having library dependencies problems (and in IA you will have problems). PHP is a simple language. It doesn't evolve a lot and the users look for frameworks, not the langage itself. For Delphi the reason is perhaps the number of newcomers and the regular updates which awake "old" programmers. And of course the activity of the community in general.
  6. Patrick PREMARTIN

    Delphi TOIOBE index lifted in May 2022?

    Can we say "happy birthday Delphi" 4 days before the D day ?
  7. Patrick PREMARTIN

    Does anyone know a delphi component that can play videos from a stream

    Hi You can use FFmpeg (perhaps with http://www.delphiffmpeg.com/) or VLC (check https://github.com/HemulGM repositories) if you want. Boian Mitov has a video stream player in his components packs (https://mitov.com/products/videolab).
  8. Right, I use the camera stream. This page explains what Android expect (for the gallery): https://developer.android.com/about/versions/14/changes/partial-photo-video-access And this one for the TakePhotoFromCamera API : https://developpeur-pascal.fr/utiliser-l-action-standard-takephotofromcamera-pour-les-applications-android-9-et-plus.html where I use the same permissions, but you also need the "secured file sharing" right from Project / Options / Rights / Android32&64
  9. procedure TfrmMain.GoToPhotoScreen(AskPermission: boolean); begin if AskPermission then TPermissionsService.DefaultService.RequestPermissions (['android.permission.CAMERA'], procedure(const APermissions: TClassicStringDynArray; const AGrantResults: TClassicPermissionStatusDynArray) var i: integer; begin for i := 0 to length(AGrantResults) - 1 do if (AGrantResults[i] = TPermissionStatus.Denied) then raise exception.create ('Permission nécessaire pour prendre une photo.'); GoToPhotoScreen(false); end, procedure(const APermissions: TClassicStringDynArray; const APostRationaleProc: TProc) begin TDialogService.showmessage ('Il est nécessaire d''avoir cette autorisation pour prendre une photo.', procedure(Const AModalResult: TModalResult) begin if assigned(APostRationaleProc) then APostRationaleProc; end); end) else begin MaskPath.data.data := FCurrentProject.MaskPath.data.data; ActiveLaCamera(tconfig.CameraType); CurrentScreen := rPhotoScreen; end; end; You need something like this code from https://github.com/DeveloppeurPascal/Fie-Frapic/blob/main/src/fMain.pas and the good permissions for your manifest. The TakePhoto call is in "ActiveLaCamera() but you can put it in the ELSE part of this code.
  10. Hi Do you ask for Android permissions to take a photo in your projects options and in your code ? The standard actions only call the APIs, they don't ask for the permissions for us.
  11. Patrick PREMARTIN

    How to create Windows Store APPX in Delphi with USB token?

    Hi If you want to publish your APPX or MSIX file to Microsoft Store, you don't need to sign it. For Ad-Hoc deployment it's an other problem. At this time RAD Studio can only sign programs and create signed MSIX/APPX files only with a PFX file. Embarcadero has not integrated the tokens or cloud certificates but some issues are opened on the quality portal. You have a few solutions if you want to distribute programs by yourself with or without creating an APPX/MSIX. To solve this problem for me I've created Exe Bulk Signing (available from GetIt) and DProj 2 Windows Setup projects (available in shareware or open sourced from GitHub). The first one manage the signing. The second one use Inno Setup and Exe Bulk Signing to package and sign a 32 bits and a 64 bits installer from the deployment wizard options in your project. Of course you can use many other packaging solutions to create a setup.exe program or an APPX/MSIX depending on the software used.
  12. This "Delphi Programming for Beginners" could also help you how Delphi and Pascal language work : https://www.dropbox.com/scl/fi/kh9qih54jgfbohejfmmww/Delphi-Programming-for-beginners-Yuriy-Kalmykov.pdf?rlkey=nv258b6gu7eufb674itnl4h39&dl=1
  13. Ok, let's check this two guides redacted for new Delphi&Pascal developers : - Programming with Delphi : https://docwiki.embarcadero.com/RADStudio/en/Programming_with_Delphi_Index - Developing Database Applications : https://docwiki.embarcadero.com/RADStudio/en/Developing_Database_Applications_Index They are old, but still up to date except for the database part where you are invited to use FireDAC, but if your project is old, you should have this deprecated knowledge in mind. (if you look on the Internet you should find the PDF release of them from Delphi 7 of after)
  14. You can also read the "Delphi Language Guide" from https://docwiki.embarcadero.com/RADStudio/en/Delphi_Language_Guide_Index
  15. Just a question to @PhilBoy : you say Object Pascal, but do you know if it is in Delphi, Lazarus or an other environment ? Let's suppose it's Delphi, do you know what was the development version ? The language don't differ a lot between releases, but used libraries does.
  16. Patrick PREMARTIN

    Anybody have Delphi running in a VM on M-series Mac?

    It can also be a solution for taking better care of yourself during the working day, like 30 years ago on a good 386 PC.
  17. Patrick PREMARTIN

    Anybody have Delphi running in a VM on M-series Mac?

    Hi A big change today : Parallels has a preview version to use an Intel VM on Apple Silicon processors ! https://kb.parallels.com/130217?clientId=1124674873.1667385428&sessionId=1734971168&alid=540884306.1736874968 (I have no x86 / X86_64 Parallels VM to test so I can't say if it's working or not in practice)
  18. Patrick PREMARTIN

    Connecting McOS and PC for FMX development

    Good to read. You just have to add macOS and (?) iOS SDK to RAD Studio and you're ready to "play" with Apple next nightmare: the certificates and provisioning profiles. (but for Mac you need the SDK and it's enough to develop)
  19. Don't forget you can submit issues to the quality portal from the docwiki footer link. Use it if you find errors, outdated pages or need more info. The installer is supposed to work. Sometimes there are problems on some computers, the doc can't manage all cases. Embarcadero support team can be contacted for installation problems (depending n your license status).
  20. Patrick PREMARTIN

    Connecting McOS and PC for FMX development

    Hi @robfr If the Mac mini and the PC are on the same network you should have no problem between PAServer on the Mac and RAD Server on the PC except if a firewall block the communication. I wrote a post about that a few years ago at https://developpeur-pascal.fr/se-preparer-a-developper-pour-mac-os-x-depuis-windows-avec-delphi--rad-studio.html On the PC : - copy PAServer.pkg from the RAD Studio installation folder and install it on your Mac On the Mac : - you need Xcode - you need PAServer - start PAServer, don't put a password when it ask for one and use "i" to show current IP address and "v" to show the log On the PC : - start RAD Studio - go to Tools / Options / Depoyment / Platform profiles (or something like that, I don't remember the English text) - add a new profile and give it the IP address shown by PAServer - test the connection It should not be more complex than that. A "ping" from the Mac to the PC IP and from the PC IP to the Mac are supposed to work. If PAServer can't show an IP, the problem is somewhere on the Mac and it's network connectivity. If RAD Studio can't connect to PAServer, it can be blocked by a firewall on Windows (or sometimes an antivirus like McAfee).
  21. Patrick PREMARTIN

    New Code Signing Certificate Recommendations

    Hi Gabriel : In your blog post you give wrong prices for the certificates. Some provider don't multiply the price by the number of years...
  22. Patrick PREMARTIN

    Delphi for Mobile Applications

    Thank you for these clarifications. Seen from this angle, the choice was a logical one. 🙂
  23. Patrick PREMARTIN

    Which is official SDK supported by Delphi 11.3

    The answer should be there : https://docwiki.embarcadero.com/PlatformStatus/en/Main_Page
  24. Patrick PREMARTIN

    New to Delphi and to the forum - with questions

    For the graphics you also have https://www.tmssoftware.com/site/diagram.asp or can be inspired by https://github.com/tothpaul/DelphiTips.LinkEditor from @Paul TOTH
  25. Patrick PREMARTIN

    New to Delphi and to the forum - with questions

    - What to use for generating and managing license keys? Many solutions are available from open source (check OnGuard) or expensive tiers dependent. I've developed my own, which is currently being deployed on all my software, with an online backoffice and a Delphi client unit. A simple use of keys to activate or not the software by code according to its state of activation. (I'm distributing it on a monthly or yearly hosting basis, and will soon be offering it for sale). - What to use for online sales? It depends on your target : public, companies or a short list of potential clients. Using the Mac App Store and Microsoft Store with their APIs to check if the program has been bought or using inApp purchase to activate the license could be a solution. If you distribute yourself choose a merchant of records (to avoid getting lost in paperwork and bookkeeping) like Gumroad, LemonSqueezy, Paddle, GoCardless, 2checkout and so many others. If you want to sell yourself the best solution is Stripe (or Paypal with the risk they cancel the account or some orders when they want). If you have only one software to sell use a simple website and add "buy" buttons connected to the resellers or payement sites. If you have more than one site you can open an online store with LiteCart (light, easy and simple to use) or more complex solution not adapted to softwares selling like Prestashop or WooCommerce. - What to use for producing PDF content? It depends on what you need on the PDF. TMS Software has a library for that and you can also try "FPDF-Pascal" open source project or reporting systems like Fast Reports. - What to use for internal product database? (leaning to either SQLite, Firebird, or IBLite) It depends on what you will store in it. If you use the latest SQLite driver and release you can't encrypt the database except by buying the encryption module from SQLite.org IBLite is limited is database sizes and encryption. (Embarcadero has offers for IBToGo for software publishers) Firebird is a good choice, but you'll have to maintain the DLL and update it if security issues are detected. - What to use to product help files (all embedded within executable, some in exe/some on website, all on website)? I use Help'n Doc. A good product simple to use, stable, with many possibilities and export formats. - Font oddities with VCL TCanvas If you have weird things, open issues on the quality portal. - Thinking about when/if to consider adding Skia and where to start with it Using Skia is simple : you only have to activate it on your project. It doesn't change our code to draw on TCanvas. Just try it. (it could change the behavior you have with fonts)
×