-
Content Count
236 -
Joined
-
Last visited
-
Days Won
4
Everything posted by Patrick PREMARTIN
-
Hi What branch or release of Mars do you use ?
-
I vote for a nocode quantum IDE. Why limiting to a number of bits ? It's so MS Dos !
-
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.
-
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.
-
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.
-
Delphi TOIOBE index lifted in May 2022?
Patrick PREMARTIN replied to wuwuxin's topic in RTL and Delphi Object Pascal
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. -
Delphi TOIOBE index lifted in May 2022?
Patrick PREMARTIN replied to wuwuxin's topic in RTL and Delphi Object Pascal
Can we say "happy birthday Delphi" 4 days before the D day ? -
Does anyone know a delphi component that can play videos from a stream
Patrick PREMARTIN replied to ToddFrankson's topic in VCL
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). -
TakePhotoAction crashes android app and starts again on xiaomi Android 12
Patrick PREMARTIN replied to fisipjm's topic in FMX
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 -
TakePhotoAction crashes android app and starts again on xiaomi Android 12
Patrick PREMARTIN replied to fisipjm's topic in FMX
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. -
TakePhotoAction crashes android app and starts again on xiaomi Android 12
Patrick PREMARTIN replied to fisipjm's topic in FMX
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. -
How to create Windows Store APPX in Delphi with USB token?
Patrick PREMARTIN replied to Sherlock's topic in General Help
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. -
Desktop App Development with Object Pascal
Patrick PREMARTIN replied to PhilBoy's topic in Algorithms, Data Structures and Class Design
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 -
Desktop App Development with Object Pascal
Patrick PREMARTIN replied to PhilBoy's topic in Algorithms, Data Structures and Class Design
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) -
Desktop App Development with Object Pascal
Patrick PREMARTIN replied to PhilBoy's topic in Algorithms, Data Structures and Class Design
You can also read the "Delphi Language Guide" from https://docwiki.embarcadero.com/RADStudio/en/Delphi_Language_Guide_Index -
Desktop App Development with Object Pascal
Patrick PREMARTIN replied to PhilBoy's topic in Algorithms, Data Structures and Class Design
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. -
Anybody have Delphi running in a VM on M-series Mac?
Patrick PREMARTIN replied to David Schwartz's topic in General Help
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. -
Anybody have Delphi running in a VM on M-series Mac?
Patrick PREMARTIN replied to David Schwartz's topic in General Help
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) -
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)
-
Delphi 12.0 Athens is not correctly installing the Android SDK
Patrick PREMARTIN replied to scamp's topic in Cross-platform
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). -
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).
-
New Code Signing Certificate Recommendations
Patrick PREMARTIN replied to James Steel's topic in General Help
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... -
Thank you for these clarifications. Seen from this angle, the choice was a logical one. 🙂
-
Which is official SDK supported by Delphi 11.3
Patrick PREMARTIN replied to FreeDelphiPascal's topic in General Help
The answer should be there : https://docwiki.embarcadero.com/PlatformStatus/en/Main_Page -
New to Delphi and to the forum - with questions
Patrick PREMARTIN replied to Paul Dardeau's topic in General Help
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