Jump to content

FPiette

Members
  • Content Count

    1167
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by FPiette

  1. FPiette

    TSocket.Send result

    You are wrong. You cannot see transmission error before the actual communication is done later, potentially long after send() method returned.
  2. FPiette

    TSocket.Send result

    I think that if you have a need for such change you don't use ICS as you should. Remember it is asynchronous. Send just means that the data is buffered and will be send as soon as possible. It is correct to return the number of bytes successfully written in the send buffer. Written in the send buffer DOES NOT mean it has been sent at the time Send() returns. If you tell us which problem you actually try to solve, then we could probably help you solve it.
  3. That is not enough to find the error. You have to run the application under the debugger (Use debug build) and provide the source code around where the exception is triggered. If the exception is triggered when USE_SSL is defined, make sure you have the correct OpenSSL libraries deployed with your application. See https://wiki.overbyte.eu/wiki/index.php/ICS_Download#Download_OpenSSL_Binaries_.28required_for_SSL-enabled_components.29
  4. Please provide the exact line in the source code where the exception occurs. "Ecriture de l'adresse 00000008. " usually means accessing a object using (Item at offset 8 in the object's data) a nil reference.
  5. Is this a kind of database for the application data?
  6. FPiette

    VCL Wrap

    If you want access to the properties and events at design time, there is no other way than creating and installing a new component having those properties and events. If you want access the properties and events only at runtime, then no need to create a component. Just create a new class deriving from some ancestor and add the properties and events.
  7. FPiette

    No timeout in THttpCli?

    Not the best idea in the world! Tell us why you need so much threads? Look at OverbyteIcsHttpAsy demo project to get inspiration.
  8. FPiette

    E-Payment processing software for Delphi

    Look at the examples in the document (https://redirect.jforce.be/api/v1/doc/examples). Note that this API is probably not available in Mexico. You have to contact the companies or banks which are providing the payment terminal. They surely have a similar (if not the same) API.
  9. FPiette

    E-Payment processing software for Delphi

    Maybe reading this documentation would help you : https://redirect.jforce.be/api/v1/doc This is probably not exactly the same in your country but you've got the idea about how it works when connecting a payment terminal to your POS application.
  10. FPiette

    E-Payment processing software for Delphi

    He just has a first customer. He will sell it a a price under his costs and will then sell it to other customers.
  11. FPiette

    App Tethering issue..

    Never used App Thethering but I assume you get and exception when the other party is not started. Just catch the exception and try again after a short delay.
  12. FPiette

    Form Creation

    Splash should probably shown modal. Then when it closes, open the other form(s).
  13. I don't see any issue getting file names which are already deleted. You will discover it when you open the file the the backup. Just handle that case. Anyway, you have to handle it is case of any other error. You can be notified about changes in the file system by using FindFirstChangeNotification (https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-findfirstchangenotificationa). Even if you get delete notification, you will need to check when you open the file because there will always be a race condition. You'll also have an issue with files which are open at the time you open it for backup. To solve this, you need Windows Volume Shadow Copy Service (VSS) (https://learn.microsoft.com/en-us/windows-server/storage/file-server/volume-shadow-copy-service)
  14. FYI: SHDOCVW.OBJ is Microsoft's Shell Doc Object and Control Library (Implemented in SHDOCVW.DLL), part of Internet Explorer (Encapsulated by Embarcadero TWebBrowser component). SHDocVw.pas, SHDocVw.dcu, SHDocVw.hpp are delivered by Embarcadero and there is also a SHDocVw.lib that you may need to link with your application?
  15. FPiette

    Tmapimail

    I don't think it is possible. MAPI is a local API. Think about using a SMTP component to send your email instead of MAPI. There are a number of SMTP client component available for Delphi. I recommend using ICS (wiki.ovebyte.be). If you have questions, there is a dedicated group on the forum server for ICS support: https://en.delphipraxis.net/forum/37-ics-internet-component-suite/
  16. Do you mean Microsoft demo project? If it is, first check your WebView2 setup (Use release version, see https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/versioning).
  17. Maybe the answer is in this article : https://blogs.embarcadero.com/new-in-getit-aws-sdk-for-delphi-and-edgebrowser-updates/ Also interesting: https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution
  18. This message means the compiler doesn't find ReceiveTB method implementation. Since it has been introduced not long ago (In V8.70), I suspect you have and old OVERBYTEICSWSOCKETS.OBJ hanging somewhere in the search path. Or maybe C++ compiler doesn't understand correctly the overloaded ReceiveTB method? I suggest you create a test application having a single form with a TWSocket and TButton dropped on it and a call to both overloaded version of ReceiveTB from the button's OnClick event handler. The code doesn't need to do anything useful neither to run correctly. The goal is only to understand with the simplest code possible if the compiler and linker understand/find ReceiveTB method.
  19. FPiette

    C to Pascal

    That doesn't answer all my questions.
  20. FPiette

    C to Pascal

    Look at this: https://github.com/WouterVanNifterick/C-To-Delphi Which pascal dialect do you need? What part did you already have done? There are dependencies you' have to port as well. At first glance what you ask looks like a huge task. What would be your benefit? Can't you just compile the C code?
  21. Could you try with one of the sample provided with ICS? And/or create a simple test project with only a single form and a TWSocket component dropped on it, nothing else? Make sure you use ICS from the latest nightly snapshot or from the SVN repository.
  22. Looks like you have two ICS versions.
  23. Not directly possible. If you explain why you think need that, and given an example of usage (the call!), maybe we can give a better answer...
  24. FPiette

    How many people use Delphi?

    No, you are doing wrong. You are making a shortcut. 98% of Delphi users don't care about math speed for what they have to do with Delphi.
  25. FPiette

    Bringing TGlobe from D5 to present day

    One may create an issue at the GitHub repository just to ask for licensing.
×