Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. David Heffernan

    [out] and [in] in records

    Where are the attributes defined?
  3. PeterPanettone

    Passing back a string from an external program

    Windows Messages is not complicated: Pass the window handle of Program1 as a parameter to Program2 which then sends the string back to Program1 as a Windows Message. Or - if Program2 is a console type program: Simply (programmatically) read the console output of Program2.
  4. Ok after tinkering with the .dproj file I decided to start from scratch, an empty project, added all my units and compiled. No problems. Just had to add all the icons, splash screens, and the specifics in each Deployment. Now it works. Thanks all
  5. PeterPanettone

    Resolve a uses clause unit path?

    Example: A unit's uses clause contains a unit DSiWin32, for example: I know that the unit's file path is: F:\Users\Peter\Documents\Embarcadero\Studio\20.0\CatalogRepository\OmniThreadLibrary_3.07.6-Rio\src\DSiWin32.pas Question: Is there an easy function to extract this path from the Library paths of the current IDE? Example: MyPath := GetUnitPathFromCurrentLibrary('DSiWin32.pas');
  6. Hi all, I'm trying to find what is the meaning of those and what the compiler does with variables declared with with either [out] or [in], like these: TMyRecord = record [in] SrcPosition: TPoint; [out] DstPosition: TPoint; end; I've been trying to search on google and in the doc, but all I can find is references to the normal in and out keywords. Thanks!
  7. This is in connection with the AddHeader function of the IHTTPRequest. I'm trying to add a multiline text which also contains numerous characters such as = signs etc. I am getting the above error as a result. Is it even possible to do this? Should I be formatting the text in some way before adding it? UrlEncode?
  8. 👍 - don't use snapshots at all (they were intended as short time snapshot anyway), I use complete duplicated images instead (about < 1 min on modern SSD) - Keep Windows lean and clean (tidy up temporarily files and system update files regularily) - Clean the VM image regularily ... <to be continued>
  9. Thanks for the proposal. Yes, revert may reset the libraries, but can I really always trust what it does ? So to use the "clean project" approach is probably only a few clicks more, and from there I can be very sure that it will work the way intended. This is only a small part of the whole project configuration, what about the rest ? I don't really like all these "magic" functions in the IDE project management when it turns out that they might have flaws in the end. For example the inheritance of project options (All --> Debug --> Release) never worked out for me to be stable, so I better check and fumble befor every major option setup, to be sure that not suddenly something bad happend there. Maybe there are better solutions to check and compare, e.g. to use export/import options sets, project configurations or the .dproj files directly, and make all global adjustment in the option sets XML or in the .dproj files directly before re-loading and building. I could think of external tools, like the Settings Migration Tool, Project Magician, or others for help keeping the project clean, is there probably any tool or a combination of several tools, that can help in a nice way ? A kind of .dproj DIFF viewer and editor which is able to sort out related settings might be great utility as well.
  10. You should even be able to just add the library using the Add button of the import wizard.
  11. until
    For three days in October, the EKON 23 welcomes some of the world’s leading Delphi experts, thinkers and practitioners to share their craft and mastery secrets. The EKON 23 offers a deep dive for the modern developer and architect aiming to transform technologies into valuable business solutions. We pride ourselves on always focusing on the big picture: Delphi innovations, Cross platforms, IoT, Data Bases, Frameworks, Tools, Delphi fundamentals, Web and Cloud technologies, as well as expert professional insight into the very latest methodologies and best-practices. Interaction and exchange of ideas is one of the great attributes of EKON 23 – a meet, greet, listen and learn conference! https://entwickler-konferenz.de
  12. Hi, from July 23 - to August 1. br,
  13. David Heffernan

    64-bit type libraries still not supported by the IDE ?

    Posting here is not going to have any impact on development of the Delphi IDE by Embarcadero. You would need to submit a QP report, although I guess at least one already exists. I assumed that your post was driven by a desire to get something done. Which can only be to import some actual type libraries. Hence my comments.
  14. Yesterday
  15. A.M. Hoornweg

    64-bit type libraries still not supported by the IDE ?

    Hi David, I'm aware of these workarounds, thanks. But I'm also aware that a 32 bit process *can* actually see the 64 bit registry, see https://docs.microsoft.com/en-us/windows/win32/winprog64/accessing-an-alternate-registry-view . And if that weren't the case, the problem could also be solved by putting the tlb importer GUI in a separate process, to be compiled in two versions. It would just be really nice if this feature worked like it's supposed to.
  16. David Heffernan

    Google Play Store - request extension for Delphi apps

    Choosing a better tool for mobile development is surely an option
  17. TomDevOps

    Google Play Store - request extension for Delphi apps

    No way... there are over 3500 users and growing (iOS and Android)... we offer our app in Google Play and AppStore only for a good reason, no-one wants to install via other minor channels, and manual installation is absolutely no-go 🙈 Also, most of our Android users use Android 9, so we cannot cut Android 9 support like Remy Lebeau once suggested in other post (publish app and restrict app from Android 9, then 32-bit update should be accepted). I have to wait bit longer I guess...
  18. Solved, {$R *.res} was somehow missing from the dpr file :P
  19. The compiler somehow always compile a strange icon into my EXE no matter what I do. This issue's driving me crazy (really, after spent a day fixing another resource-related issue and this come out...). Any one can help me? The stackoverflow question is here so I won't repeat the details: https://stackoverflow.com/questions/57538331/delphi-icon-of-compiled-exe-is-wrong-and-cannot-be-changed Thanks in advance!
  20. Mike Torrettinni

    Using Delphi in Virtual machine for a month

    Thank you, great tips! Will try some and see how it goes. Oh, yes, thank you for pointing it out: I don't use any AV in VM, and I excluded the VM file disk folder from anti malware sw and Defender monitoring. Same for Shared folders, excluded from monitoring.
  21. Tom Chamberlain

    Using Delphi in Virtual machine for a month

    We have used Delphi in Virtualbox for 10+ years using a separate SSD for the VM makes the biggest improvement and using the extensions help, no AV software in the VM. We keep the source on the host drive with a share to the VM, this lets us upgrade the VM/Delphi faster, source control also lives on the host with the source directories excluded from AV monitoring. We run multiple VM's at the same time, 2012 Server with SQL and our services for a complete isolated (virtual networks) production like environment. No need to ever access the internet from the VM's except for Windows updates. We use i7 laptops with 32GB and multiple SSD/M.2's on docking stations with multiple monitors so the Delphi VM has it's own full screen, the 2012 server is minimized 90% of the day.
  22. Darian Miller

    Using Delphi in Virtual machine for a month

    I've been using Delphi in a VM for a number of years utilizing VMWare Workstation and I believe it runs really well. It sounds like a VMWare settings / allocation issue. Couple pointers: - Do not utilize 'thin-provisioned' disks. Pre-allocate the assigned space otherwise you'll get sporadic speed issues as the disk increases in size. - Exclude the directory on the host machine where your VM files are stored from realtime AV scanning. If you cannot exclude a specific folder (like McAfee), get a different AV. - Don't try to assign too much RAM to the VM. Test scaling it back from 12GB to 10 and then 8. I have 64GB RAM in the host and only allocate 8GB to my Delphi VM. - Use SCSI virtual disks - Display: Accelerate 3D Graphics + assign a decent amount of graphics memory (1GB) - The more snapshots of a VM, the worse the performance seems. Make physical backups instead and get rid of your snapshots. - I periodically defragment the virtual disks within VMWare (https://docs.vmware.com/en/VMware-Workstation-Pro/15.0/com.vmware.ws.using.doc/GUID-BD914064-D20D-4032-9373-88F4DA7AE7C6.html) Some items I don't use, not sure on the performance benefit - Don't use the built-in Shared Folders - Don't use the built-in auto-protect - Don't sync time with host If you can swing it - use NVMe disk instead of SSD.
  23. John Kouraklis

    Passing back a string from an external program

    Wouldn't App Tethering work in this case?
  24. John Kouraklis

    Using Delphi in Virtual machine for a month

    Scaling of the windows in a VM is not done efficiently especially if you move thw VM window from a 4K monitor to a non-4K. But in general, I agree with @Dany Marmur. There are huge benefits in using VMs
  25. Can't they install the .apk file directly in the meantime?
  26. arnold mueller

    MMX 15 (Beta) Available

    Many thanks for fixing the MMX-Explorer/Object Inspector issue. 👍
  27. Dany Marmur

    Using Delphi in Virtual machine for a month

    Thanks to all that have insights. Pile up your tips and tricks! The benefits of developing in a VM are heavy (esp. for a shop like mine). I feel that my Tokyo VM is *very* sluggish. I suspect DX skinning a lot. A new problem is that sometimes when i press Alt and stop myself (releasing Alt) the IDE misaligns with the VM desktop and both the client and the host starts to refresh the desktop. Argh!
  1. Load more activity
×