Jump to content

evolplus

Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by evolplus


  1. On 9/29/2023 at 7:51 PM, weabow said:

    Thanks.

     

    For Windows I know associations, but as I know, it needs to have a file. I've already implemented it and it runs fine with the file. But the need I have is to use a link, something like Zoom...

     

    It's a good news to know that on MacOs it can run. On mobiles, I've been told that it can run too, but on Apple maybee there are restrictions ?

     

    Linux is not in a hurry for me.

    I think what you need is register a URL scheme for your app on Windows as follows:
     

    procedure RegisterURLScheme(protocol: string);
    var
      reg: TRegistry;
    begin
      reg := TRegistry.Create;
      reg.RootKey := HKEY_CURRENT_USER;
      reg.OpenKey('Software\Classes\' + protocol, true);
      reg.WriteString('', 'URL:' + protocol);
      reg.WriteString('URL Protocol', '');
      reg.CloseKey;
      reg.OpenKey('Software\Classes\' + protocol + '\DefaultIcon', true);
      reg.WriteString('', ParamStr(0));
      reg.CloseKey;
      reg.OpenKey('Software\Classes\' + protocol + '\shell\open\command', true);
      reg.WriteString('', '"' + ParamStr(0) + '" "%1"');
      reg.CloseKey;
      reg.OpenKey('Software\Classes\' + protocol + '\shell', true);
      reg.WriteString('', 'open');
      reg.CloseKey;
      reg.Free;
    end;

    Above function register a protocol and set its app association  with the current program ( ParamStr(0) ). e.g. if you register with protocol 'myapp', then the URL will be like myapp://the-encoded-data-as-uri. Inside your app, call ParamStr(1) to get the parameters as URL form.
    Note: this solution is specific for Windows platform.


  2. 1 hour ago, Dave Nottage said:

    dsymutil.exe should be in the bin folder of your Delphi install, e.g. C:\Program Files (x86)\Embarcadero\Studio\22.0\bin

     

    If it is not, then it seems your install of Delphi did not complete correctly, which may mean you need to reinstall. Less drastic is perhaps uninstall iOS support and reinstall it using Tools | Manage Platforms

    Many thanks! I tried uninstall and reinstall RAD Studio but it still did not work until I checked to install Delphi MacOS platform support.  

    • Thanks 1

  3. Hello everyone!

     

    I have started trying to develop cross-platform FMX application. I succeeded in compile a simple app with just a form (only TLayout and TImageList which contains images) in Windows and Android platform. But when I switched to iOS, I cannot compile with the given error: "F1026: File not found 'dsymutil.exe'. Can you help me figure out that what I made incorrectly? As I know, dsymutil is an utility of Xcode command line tools which is not available on Windows, isn't it? 

     

    P.S: I am using Delphi 11.3. I have already setup Xcode 14.3.1, its Command Line Tools, PA Server 22. Delphi can load list of profiles and simulation devices from my Mac.

    image.png

×