Jump to content

FPiette

Members
  • Content Count

    547
  • Joined

  • Last visited

  • Days Won

    7

FPiette last won the day on December 22 2020

FPiette had the most liked content!

Community Reputation

202 Excellent

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. FPiette

    Floating point arithmetics

    Floating point numbers are a difficult subject. To have a better idea, read this article: http://rvelthuis.de/articles/articles-floats.html Be sure to have a look at the references at the end of the article. FPU Control Word can also be affected by components or libraries and then change the behavior. Look at this documentation http://docwiki.embarcadero.com/RADStudio/Sydney/en/Category:Floating-Point
  2. FPiette

    Floating point arithmetics

    The IDE and dcc32 are the same compiler so using the same compiler switch should result in the same code. I suspect - as it is often the case - that you extracted the code for a more complex application and there is something interfering that you didn't see. That's why I asked you to create a minimal example reproducing the problem. Now you have the code and you have to test the result with both the IDE et dcc32.
  3. FPiette

    Floating point arithmetics

    OK, now compile your sample with Delphi IDE and with DCC32 and share the results.
  4. FPiette

    Floating point arithmetics

    Please show a complete minimal reproducible example project.
  5. I still don't understand. Do you mean a company offering a service like what Embarcadero has implemented for Delphi registration? The OP is looking for a component to integrate in his own software and which contact some remote service to validate software registration?
  6. What is a software registration company?
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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.
  12. Try Pascal Analyser Lite.
  13. 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
  14. I suggest that one of you create a new topic to discuss MQTT.
├Ś