-
Content Count
3513 -
Joined
-
Last visited
-
Days Won
174
Posts posted by David Heffernan
-
-
Definitely not impossible to find the error. Search for TDBLookupComboBox in all the .dfm and .pas files that are compiled.
-
8 hours ago, Michael Taylor said:Nothing that needs memory management, so I wanted to call my constructor "From" instead of "Create" to signify that no memory allocation takes place, and Free won't be necessary.
This isn't true. Your class function calls the default constructor and that performs memory allocation. Free must be called. Instances of classes are heap allocated.
- 2
-
2 hours ago, Ranja AZ said:The code is in Java. I don't know the Java language. So I want to do it in Delphi.
Thanks!
What have you tried so far?
- 1
-
What specifically do you mean by "help me translate"
- 1
-
6 month contract and you have to jump through all these hoops. It's a seller's market right now.
-
Staggering that an employer could post something as demeaning as this.
-
Next release of Python supports per interpreter GIL which sounds exciting.
-
22 minutes ago, Eugenio Monti said:No exceptions, no errors. Simply it returns INVALID_HANDLE_VALUE.
Well, there will be an error code. You have to retrieve it.
-
When you tried this, what happened? What error was reported. Or was there no error reported?
-
2 hours ago, David Heffernan said:You didn't tell us what happened when you used the old code. If you have a problem that you want some help with, then you should say what the problem is. People can't offer solutions to problems that aren't described.
-
On 8/21/2023 at 7:17 AM, Rollo62 said:What I found it this article, maybe it helps, but I couldn't check it, because I have no SafeNet yet.
https://medium.com/@joshualipson/ev-code-certificates-automated-builds-for-windows-6100fb8e8be6
Perhaps, somebody has experiences or comments with that solution?
This is precisely what I am doing. My Python build code to perform signing starts like this:
def Sign(filename, sdk=None): # see https://medium.com/@joshualipson/ev-code-certificates-automated-builds-for-windows-6100fb8e8be6
-
3 minutes ago, Rollo62 said:It looks as if you want to download a file via HTTP request, like this here in a German blog.
Then you should use something like Indy IdHttpClient for that purpose, as a rough guess what you are looking for.It doesn't look like that to me. It looks like a file read for a file named by UNC.
I don't think I'd be wanting to use FileOpen anywhere ever. Shouldn't you be using streams these days?
Having said that of course, FileOpen still works. You didn't tell us what happened when you used the old code. If you have a problem that you want some help with, then you should say what the problem is. People can't offer solutions to problems that aren't described.
Do you understand what \\IP_address\FolderName\Filename is? I trust you do, and that the file specified by this UNC path is available on your current target device. Is it?
- 1
-
On 3/15/2021 at 4:57 PM, Guest said:an Exe is allocated in a simple address space, while a DLL is adjusted in "this space" and refereced by pointers, what can be "broked" for many causes.
for me, an EXE should be always more quickly on "searches - for methods, vars, etc..." than a DLL. of course, some can not be correct here.
For the record this is completely wrong
-
You said a C# project. Anyway, why don't you do this work yourself?
-
That will maybe buy you 30 minutes of a qualified person's time.
-
8 hours ago, kvk1989 said:I have a c# and python project can someone help me to convert project in to Delphi?
Thanks have a great day
Hire a programmer
-
That's not quite enough. Do the exe and bpl both link to the same runtime packages?
-
This will work fine so long as everything is linked correctly. No need even to use stdcall. So probably the linkage is messed up. We can't see the entire picture.
-
To cast to PByte then it's PByte(myPointer)
-
No idea what type myPointer is. A simple 10 line program would reveal all.
-
Code is utter shite anyway. Just cast @InData to PDWORD and use pointer arithmetic already.
I would imagine that FixInsight would give the warnings you want.
-
Every time you cast a pointer to a 32 bit integelral value, you are truncating. This is 64 bit porting 101.
longword(@InData)
That's truncation.
-
I thought they'd been removed because they weren't useful. They were added for SQL server and in the end it turned out they weren't useful for that application.
- 1
-
8 hours ago, Remy Lebeau said:I'm sure either one will be fast enough for your needs. Chess isn't very computationally heavy.
I'm baffled. Both of these statements are wrong.
Delphi is known to be produce very poor and inefficient code. Although I'm not qualified to comment on FPC's code gen.
- 1
Impossible to find error
in VCL
Posted
A dfm file is a source file