Jump to content

FPiette

Members
  • Content Count

    1167
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by FPiette

  1. What is a software registration company?
  2. FPiette

    Excel to DBGrid

    Export the Excel sheet as a CSV file which is a text file that you can easily parse with Delphi. Or automate Excel from your Delphi application to get the cells. Probably other solutions exists.
  3. You have an array of word. Each array cell has to be a word, that is a 16 bit unsigned integer (0..65535). When you try to assign 73232, you are outside of the range 0..65535 giving the error you see. When you assign word(73232), you ask the compiler to convert 72232 to a word (will simply be truncated to the lower 16 bits) and it works.
  4. FPiette

    SysUtils, AnsiString

    You could create your own function MyStrLCopy() which simply call the original one. If you make it inline, then it will be as fast.
  5. FPiette

    UDP sending and receiving

    WSocketReceive.Port := '0'; This is clearly wrong. Use a valid port number. procedure TMainForm.WSocketSessionAvailable(Sender: TObject; ErrCode: Word); begin // This is never called MemoReceive.Lines.Add('Port: ' + WSocketReceive.Port); end; UDP is a sessionless protocol.
  6. I don't know if it will help you but recently I wrote an application to display radiography images which are huge (more than a CD for a single image). I had to load the image in a 2D array much like BMP does and then handle parts of that bitmap according to the zoom factor selected by user (mouse wheel or button or keyboard, doesn't matter) and pan (mouse drag, cursor keys, doesn't matter). The computation shrink or stretch the part of selected image to create a bitmap that can fit on screen. I made a CPU computation (works well but not that fast for the gigantic images) and also on GPU (Stay fast). I must admit that this is not simple code. Nor it is very complex.That's more or less what Google is doing for its satellite images. Unfortunately I can't share the code since it is copyrighted. But I can discuss the topic if you have questions.
  7. There is annual developer survey going on on Stack Overflow. Delphi is in the language list, now we need Delphi developers answering the survey and ticking Delphi to show it is relevant. https://meta.stackoverflow.com/questions/407914/take-the-2021-developer-survey
  8. I suggest that one of you create a new topic to discuss MQTT.
  9. FPiette

    TTouchKeyboard layout

    Sorry but it looks you have an English layout. What did I miss in your post?
  10. FPiette

    Using VMWare: what files remain on host?

    You have to consider the content of your VM exactly like you would consider it if it was installed on a separate physical machine connected to the same LAN.
  11. Search the web for a tutorial about Delphi Exception Handling.
  12. It is better you open a new message thread for that other subject.
  13. FPiette

    Outlook Server Execution Failed

    On that computer, using RegEdit, search if the key "HKEY_CLASSES_ROOT\Outlook.Application" exists. There could also be version specific keys such as "HKEY_CLASSES_ROOT\Outlook.Application.16".
  14. FPiette

    Is there any way to install delphi 10.4 package into Delphi 10.3?

    You have to recompile the 10.4 package source code with 10.3 hoping that the code doesn't use any new feature.
  15. FPiette

    Do bug fix patches really require active subscription?

    That is at least partly wrong. Google can found a page or file only if the is a link to it or it is submitted to Google or is a the file each website has for all robots. Google has no way to find the existence of a file not mentioned anywhere. In HTTP, a directory cannot be listed. Now that the link has been mentioned in this forum, it could be indexed by Google (No idea if this forum is indexed by Google).
  16. Not an issue with Windows 10 Pro: I use it (64 bits) all the time with all updates installed. Is your Windows up-to-date (Verify optional updates, latest release is Version 20H2). Did you had any issue while installing Delphi? Try running "as administrator". Try disabling any security product (Anti-virus or other. Do'nt forget to re-enable it quickly after test and before connecting to the Internet).
  17. FPiette

    Several F2084 Internal Error on Delphi 10.4.2

    I suspect someone did those "invisible" (Spaces) changes inadvertently and put it in version control making it to appears in the patch.
  18. FPiette

    Several F2084 Internal Error on Delphi 10.4.2

    I would add patches in the order of publication date.
  19. FPiette

    Main screen tab error

    I have no "documentation.htm" file anywhere in C:\Program Files (x86)\Embarcadero\Studio\21.0 and subfolders.
  20. FPiette

    Modified property in vcl Xe builder

    You want to check if the modification has been done using TMemIniFile properties or methods, or do you want to check for modification done outside of your application, for example when someone change the associated file using NotePad.
  21. FPiette

    Modified property in vcl Xe builder

    Which kind of file? For which purpose? You can consider using FindFirstChangeNotification to get notified when the file changes.
  22. FPiette

    Help Understanding SQL Parameters Utilization

    @Gary MugfordI was talking about the string constant "ZZ" and not the Checkbox named xZZ. I tried to say that yoyr SQL request built with Delphi code is OK and DO NOT suffer of SQL injection risk. I was trying to say that if instead of the constant "ZZ" you want to use a value from a TEdit, then suddenly your code becomes at SQL injection risk and to avoid it you have to use a parametrized SQL request.
  23. FPiette

    Help Understanding SQL Parameters Utilization

    This website is in English. Please translate to English before posting.
×