-
Content Count
2268 -
Joined
-
Last visited
-
Days Won
46
Everything posted by Fr0sT.Brutal
-
Beginner to Delphi. Have no idea what I'm doing wrong here
Fr0sT.Brutal replied to Willicious's topic in Delphi IDE and APIs
Ah, you're right. Nice, the compiler is a bit more clever than I thought -
Beginner to Delphi. Have no idea what I'm doing wrong here
Fr0sT.Brutal replied to Willicious's topic in Delphi IDE and APIs
No, this was a non-DB-related question, just curiosity. While there is IsLetter function, it checks for all letters in Unicode table so I wondered which constructions are popular for the purpose. Yes, that's possible. CharInSet won't check whether a char is ASCII or not and codepage-dependent cases are possible that won't produce neither compile-time messages nor run-time errors. Alas, I can't imagine how they could force the check. Runtime exception in such a basic function doesn't look good Sounds nice, create request to QC? 🙂 -
Copy bitmap from one app to another app bitmap
Fr0sT.Brutal replied to RTollison's topic in General Help
If that handle is WinAPI handle then yes, you can replace that loadbitmapfromfile with call to your DLL returning the handle -
Have you tried pressing Inspect button?
-
VCL or FMX: My sample using Thread running in another forms for some tasks...
Fr0sT.Brutal replied to programmerdelphi2k's topic in General Help
Some forums I lived at red color was only allowed for moderators. That was very good rule. -
Form.Position = poDesigned?
-
I'd too expect it to be instance method. No string in Delphi could be null in fact so there's no sense in static class method. Probably they simple copypasted it from .Net which has nulls and thus such function couldn't be an instance method?
-
Beginner to Delphi. Have no idea what I'm doing wrong here
Fr0sT.Brutal replied to Willicious's topic in Delphi IDE and APIs
They couldn't. Set is limited to 255 elements, so CharInSet only works for Ansi sets (I'm sure you know that 😄 ) Btw, I wonder how do you check whether a char is a letter of a some language (f.ex. Norwegian, German)? They have not only latin chars but some additional which can't be declared with simple 'a'..'z'. You have to add them explicitly, like 'a'..'z', 'æ'? -
Copy bitmap from one app to another app bitmap
Fr0sT.Brutal replied to RTollison's topic in General Help
If you have no control over cobol app and it only reads from file, there's little you can do except hooking CreateFile & FileWrite WinAPI's. Or even use filesystem driver to represent a piece of RAM as a drive but that unlikely is an option. In theory, if you're lucky and the app uses only CreateFile without additional file-specific checks, you can feed it with path to a pipe which you will create and control. -
EUnsupportedPlatformService with message 'Unsupported platform service: Terminate'
Fr0sT.Brutal replied to at3s's topic in FMX
Apple knows best -
Copy bitmap from one app to another app bitmap
Fr0sT.Brutal replied to RTollison's topic in General Help
I think Anders meant pointer to WinAPI bitmap handle -
Just launch the thread and let it work, catch the event when it's done.
-
Why the //s at the end? On topic: enlarging only size limit without multiline literals seem nearly useless to me. However, there's another catch - we have those stupid 3 different linebreaks. Which of them multiline literals will have? They either will contain hardcoded linebreak incompatible with 2 of 3 OS's or will depend on target OS or file encoding, thus the value of a constant will differ on various platforms.
-
Are TCompressionStream and TDecompressionStream thread safe?
Fr0sT.Brutal replied to c0d3r's topic in Algorithms, Data Structures and Class Design
What exact safety you mean? One instance across threads or thread-personal instances? -
IDK about D11 but D10.3 still is not able to handle multiline literals. This might be not simple TP legacy size limitation but the parser's which is harder to remove.
-
Why is Url an undeclared identifier here?
Fr0sT.Brutal replied to dummzeuch's topic in RTL and Delphi Object Pascal
Funny, even after 20 years of Delphiing you can discover something new 🙂 Edit: Alas, that's only for compilers with array literals. -
Best way to embed a binary structure so it is linked/compiled in
Fr0sT.Brutal replied to alank2's topic in General Help
If it's an important part of the code, storing as array is acceptable. RTL itself stores Unicode table in this manner. Just make a conversion tool to not have to edit that array manually -
Yes you can but only for the derivative you wrote. Your code => your rules, not your code => not your rules 🙂 Or at least MPL which requires modifications being published but allows any private derivatives (inherited classes etc)
-
Methods from Libraries (bpl or pas) in Apps??
Fr0sT.Brutal replied to Ian Branch's topic in General Help
No -
Why is Url an undeclared identifier here?
Fr0sT.Brutal replied to dummzeuch's topic in RTL and Delphi Object Pascal
Array constants with no predefined length never were not allowed -
TFtpClient files download wrong files size
Fr0sT.Brutal replied to a topic in ICS - Internet Component Suite
Did you even look at FTP client demo? You're using it fundamentally wrong. ICS is asynchronous - this means you start an action and wait for some events to happen -
TO ChatGPT: In Delphi, is there any kind of an adapter or class that takes a TList<T> and makes it look like a TDataSet?
Fr0sT.Brutal replied to David Schwartz's topic in Databases
Interesting. Could you post the link to your profile? I'm curious what I'd think about your questions. You know, there's a rule I learned from my own experience: if you ask Google for a question and find nothing, likely you're trying to do something wrong. The same with questions. -
Methods from Libraries (bpl or pas) in Apps??
Fr0sT.Brutal replied to Ian Branch's topic in General Help
Fast & simple check whether a code is compiled into binary: build in debug mode and look at dots near line numbers. No dots - code was stripped by linker -
@Remy Lebeau yes, that's exactly what I thought. Probably didn't express that clear enough. BTW, harsh patching of lib names inside binaries also seems to work. I changed libeay|ssleay32 to libeay|ssleay99 and test app powered by QT connected successfully
-
Combining Delphi and NodeJS in IIS
Fr0sT.Brutal replied to misc_bb's topic in Network, Cloud and Web
I didn't tried this but see no problems. You'll just have to either run Node constantly or have it launched every time it is needed (like any other server app in fact)