Jump to content

FPiette

Members
  • Content Count

    1120
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by FPiette

  1. FPiette

    Hosting a console in a Delphi Application

    No need to call AllocConsole: it is enough to check "make console application" in the project options AFTER having created a GUI application. Delphi RTL will create a console Window. Not that it is not enough to run cmd and powershell! See my previous message.
  2. FPiette

    Hosting a console in a Delphi Application

    You have to launch the corresponding command interpreter executable. If you don't want to have it in a separate floating window, you must redirect input and output to your own application using pipes. You'll easily find numerous Delphi libraries for the purpose. Search "Delphi Redirect input output" or "interprocess communication using pipes" (remove double quotes) with your favorite search engine.
  3. FPiette

    TSocket.Send result

    What you seems not understand yet is that Send() don't send data! It just put data in the send buffer and let the component send it when the network is able to accept it. Your application code continue to run long before the data is completely sent. That is asynchronous operation.
  4. 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.
  5. 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.
  6. 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
  7. 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.
  8. Is this a kind of database for the application data?
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. FPiette

    Form Creation

    Splash should probably shown modal. Then when it closes, open the other form(s).
  16. 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)
  17. 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?
  18. 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/
  19. 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).
  20. 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
  21. 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.
  22. FPiette

    C to Pascal

    That doesn't answer all my questions.
  23. 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?
  24. 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.
  25. Looks like you have two ICS versions.
×