

ertank
Members-
Content Count
257 -
Joined
-
Last visited
-
Days Won
1
ertank last won the day on December 15 2024
ertank had the most liked content!
Community Reputation
30 ExcellentTechnical Information
-
Delphi-Version
Delphi 12 Athens
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Hello, I am using TNetHTTPClient for reading some REST web service data over HTTPS. Some users have multiple web services to read data from. Some of these users with multiple web services have frequent checks (check every minute, or even check each 10 seconds). So they have several times a day below DNS resolution errors showing up in logs. The application also reach the same web service(s) but different end points from its UI part. All of these are under exact same domain per web service. Error sending data: (12007) The server name or address could not be resolved Since the application (thread) read some data from the exact same URL one minute ago, I cannot understand why such errors get logged. The error also occasionally occurs on the UI part of the application. My web searches all point to the DNS server problems. Users' DNS servers are fine as per my tests. Though, it is not possible to make a test at the error time. I am trying to understand why this error happens where domain was resolved one minute ago (or even 10 seconds ago). Any help is appreciated. Thanks & Regards, Ertan
-
Hi, I don't have JWT knowledge but maybe https://www.jwt.io can tell you more.
-
You do not need to use the DLL. You already have complete DLL code as far as I can tell. I think it is possible to convert that code to Delphi. I cannot be sure about the details of C# encryption method. It seems like DES, CBC and PCKS#7 padding. You need to confirm that information. Once you have all details, there are several free encryption libraries available for Delphi which can help you do the same directly in your project without any need for a DLL. You can install LockBox from GetIt as an example. There are other alternatives and you may want to check some of them. In case you are using older versions of Delphi like Delphi 7, you can still build your own DLL using a recent version in case you are not able to use the cryptography library in your Delphi version. Nowadays there is a lot of AI use. They can also help you convert that C# code into Delphi. if you choose to do it that way just make sure that final code is actually correct.
-
I am missing hints displayed when mouse cursor waits on form objects while working on VCL form design. Show designer hints is checked in the options. Can anybody reproduce? There must be something on my daily system. VM test system seems to be working fine. Go figure.
-
You might want to use https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer BTW, I personally value logging which helps finding where it stops
-
Browsers mostly do GET request. How do you make a POST request using explorer? BTW, your example code feels like you are not actually bound to DataSnap. I suggest you to check out MARS-Curiosity https://github.com/andrea-magni/MARS
-
Hello, I want to conditionally change stock ImageListItemBottomDetail appearance TListViewItem (not the list but a single item) background color at runtime. Stylebook - background changes for whole background as far as I can see. Any help is appreciated. Thanks & Regards, Ertan
-
Hello, I tried to import below URL and resulting unit has errors. https://einvoiceserviceturmobtest.luca.com.tr/InvoiceService/ServiceContract/InvoiceService.svc?wsdl I don't know if WSDL is erroneous or Delphi cannot cope with it. I wonder if there is a way to have it imported properly. Any help is appreciated. Thanks & Regards, Ertan
-
Problem was indeed the packed. Removing it solved the problem. Thank you.
-
Hi, There is a DLL that has demo project in C#.NET code that I would like to convert into Delphi public struct AcquirerAmount { public uint id; public ulong amount; } public struct InposEcrPayment { public const ushort MAX_ACQUIRER_COUNT = 8; public ulong totalAmount; public uint totalCount; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] public AcquirerAmount[] acquires; } So far I converted above struct as below but data incoming is not correct. I believe that Delphi conversion is not correct. TInposAcquirerAmount = packed record Id: UInt32; Amount: UInt64; end; TInposEcrPayment = packed record TotalAmount: UInt64; TotalCount: UInt32; Acquires: Array[0..7] of TInposAcquirerAmount; end; Any help is appreciated. Thanks & Regards, Ertan
-
I tested it on Android 12 and and it is working just fine. Original SO answer was missing the case match of the function and its declaration type which I should be careful for the next time. Thanks for the help.
-
Hello, Android has 24H/12H hour display format setting. I wanted to format my time values displayed as in system settings but I couldn't find how to read that specific is24HourFormat value. Delphi TFormatSettings does not include that information. There are earlier SO threads like this one. But that code gives me Invoke error: method not found. I also tried to import "android/icu/text/DateFormat" that I found in another SO answer and the app crashes without any error displayed. What would be the correct way to read that system setting? Thanks & Regards, Ertan
-
Speaking about Delphi 12.2 Inline Update 1. I am told that Windows 10 and Windows 11 changes the experience. Delphi is giving problems on Windows 11 and identical (down to installed components) system on Windows 10 works just fine.
-
Is it possible that the <RAD Studio>\bin\rsvars.bat file does not set all the necessary variables for MSBuild to work correctly?
ertank replied to dmitrybv's topic in Delphi IDE and APIs
When I was adding Delphi 12.2 in our build server I remember below value was missing in rsvars.bat BDSLIB=C:\Delphi12.2\lib You need to point it to your correct directory.