Jump to content

Cristian Peța

Members
  • Content Count

    443
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by Cristian Peța


  1. 16 hours ago, gioma said:

    in reality that data can be a UTF8 string or a UNICODE string or a file.
    The first character of the data tells me what type of data I have to work with.

    Then you don't know if that first char is one or two bytes.

    You test first byte (suppose UTF-8) and if it is not what you expected then you test first two bytes?


  2. 4 minutes ago, Morphumax said:

    Delphi. I just tried to copy the parameters specified in the hint box. There were quite a few. 

    Maybe I am from ice age and Delphi evolved since then...  but this does not compile in D11.3: E2005 'Create' is not a type identifier

    Calling TGUIDHelper.Create() in procedure declaration where you need to give a type is somehow strange for me.

     

     


  3. 20 minutes ago, Morphumax said:

    procedure HandleCommand(Sender: TObject; aLine: TncLine; aCmd: Integer; aData: TGUIDHelper.Create(System.TArray<System.Byte>, System.Types.TEndian).:1<Byte>, aRequiresResult: Boolean; aSenderComponent: string; aReceiverComponent: string);

    aData type is terrible... is this Delphi code?


  4. 17 hours ago, emileverh said:

    I know it's a compiler problem, but why can they do it with classes and not with records.... 

    It's not a compiler problem, but record variables are not class variables and when you declare a record variable it is allocated automatically.

    You enter into a infinite loop of circular allocation.

    type
      TRecA = record;
      TRecB = record
        FieldA: TRecA;
      end;
      TRecA = record
        FieldB: TRecB;
      end;
      
    var
      a: TRecA; //infinite circular allocation of memory

     


  5. 5 minutes ago, techdesk said:

    The robot tells you that should you  need to interface with him then you need to use his protocols and language.

    Then you want to write a transpiler in Delphi to translate Delphi code to "STM32 language" and back?

    But what is "STM32 language" ?

     

    Just found something where Pascal is mentioned (link: https://www.st.com/en/development-tools/stm32-ides.html):

    Quote

    STMicroelectronics' STM32 family of 32-bit ARM Cortex-M core-based microcontrollers is supported by a wide range of software integrated development environments (IDEs) with C, C++, Pascal and JAVA support and debuggers from STMicroelectronics and major 3rd-parties (free versions are available) that are complemented by tools from ST allowing to configure and initialize the MCU or monitor its behavior in run time.

    And here (link https://smartsolutions4home.com/how-to-program-stm32/) states: "The only correct option here is C. Don’t bother with other creations."


  6. 17 minutes ago, Lajos Juhász said:

    That's not possible. The Welcome page is working fine for me (installed from the ISO image). I doubt that the ISO and online installer has different setup for the GetIt.

    https://blogs.embarcadero.com/getit-update-additional-rad-studio-12-getit-packages-are-now-available/

    Quote

    Customers who have installed RAD Studio 12 using the online installation process won’t have the ability to add new platforms and core features to the product via the Manage Features dialog. In order to do this, they will need to uninstall and then reinstall using the new inline release.

     

    I understand from the link above that who installed with old online installer GetIt will not work.


  7. 7 hours ago, Willicious said:

    Does anyone know of a way to get a new serial for 10.4.2 CE?

    As @Uwe Raabe said, Embarcadero does not want to do this.

     

    7 hours ago, Willicious said:

    Anyone had any luck with contacting Embarcadero for help?

    You are the only one who can give Embarcadero a good reason to give you a new 10.4.2 CE license.

     

    9 hours ago, Willicious said:

    Both 11 and 12 run into problems when getting the project set up, so simply installing the latest version unfortunately isn't the solution.

    If you have sources I don't think this is a show stopper. Ask help here if there is something blocking you to use D11.

×