Jump to content

lior I

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

Recent Profile Visitors

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

  1. In Delphi 11 64 bit target, I get the error: “E2158 System unit out of date or corrupted: missing ‘String’” When using Evaluate/Modify Watches (Ctrl+F7). It looks like a problem with converting strings in System.Sysutils or System. For example: ExtractFilePath(ParamStr(0)) I can see ParamStr(0) value but not the ExtractFilePath value. Another example: Application.Title := ‘My title’; I can see Application.Title value but can’t see ‘My title’ in the watch Window. 32 bit target seems to be ok. Embarcadero support advised me to upgrade to Delphi 12. Has anyone find a workaround in Delphi 11.3? Similar reports in https://quality.embarcadero.com/browse/RSP-39997 Thanks in advance
  2. Hello, How can I get the OAuth2 authorization code into a Delphi 10.3.3 or 10.4.2 VCL desktop application (Exe), instead of getting it in the browser address bar? Mybe using TEdgeBrowser or indy components ? Thanks in advance
  3. Unfortunately custom title bar does not exist in Delphi 10.3 RIO.
  4. Hello, I use Delphi 7 and Delphi 10.3. On windows 10 and above the form title caption is aligned to the left at run time, even though the forms BiDiMode=bdRightToLeft. At design time it is aligned to the right as it should be. On Windows 7 the caption is right aligned at run time as needed. This is a VCL program. How can i solve this problem? I tried Params.ExStyle := Params.ExStyle or WS_EX_LAYOUTRTL in the form's CreateParams. The caption was aligned to the right but then the form controls where left aligned. Is there a solution to this bug using Delphi 10.3? Thanks in advance
  5. I need to upload a PDF file to the WhatsApp Cloud API. Can someone help me translate this WhatsApp curl example to Delphi pascal? Here is the code from the WhatsApp documentation (JPEG example): curl -X POST \ 'https://graph.facebook.com/v15.0/FROM_PHONE_NUMBER_ID/media' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -F 'file=@/local/path/file.jpg;type=image/jpeg' -F 'messaging_product=whatsapp' I don't know how to translate the file parameter. -F 'file=@/local/path/file.jpg;type=image/jpeg'  It includes both path and file type attributes. I use Delphi 10.3 RIO
  6. curl -X POST \ 'https://graph.facebook.com/v15.0/FROM_PHONE_NUMBER_ID/media' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -F 'file=@/local/path/file.jpg;type=image/jpeg' -F 'messaging_product=whatsapp' I don't know how to translate the file parameter. -F 'file=@/local/path/file.jpg;type=image/jpeg' It includes both path and file type attributes.
  7. I agree. Almost identical code for sending both types of files.
  8. What's the problem with the title? I need to send a file to a WhatsApp recipient using the WhatsApp cloud. The documentation explains sending a JPG file and not a PDF file like I want, but that will be enough for me to move on.
  9. Hello. I need to send a PDF file to a WhatsApp recipient using WhatsApp Cloud API. Can someone help me translate this WhatsApp sample curl code to Delphi pascal? Here is the code from the WhatsApp documentation: Step1: Upload media to cloud API. curl -X POST \ 'https://graph.facebook.com/v15.0/FROM_PHONE_NUMBER_ID/media' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -F 'file=@/local/path/file.jpg;type=image/jpeg' -F 'messaging_product=whatsapp' A successful response includes an object with an identifier for the media: { "id":"ID" } Step 2: Send message using media ID. curl -X POST \ 'https://graph.facebook.com/v15.0/FROM-PHONE-NUMBER-ID/messages' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "PHONE-NUMBER", "type": "image", "image": { "id" : "MEDIA-OBJECT-ID" } }' I’m using Delphi RIO 10.3 Thank you in advance
×