Why does CreateProcess give error 193 (%1 is not a valid Win32 app)

The most likely explanations for that error are: The file you are attempting to load is not an executable file. CreateProcess requires you to provide an executable file. If you wish to be able to open any file with its associated application then you need ShellExecute rather than CreateProcess. There is a problem loading one of the dependencies of the … Read more

What is ‘\0’ in C++?

‘\0′ equals 0. It’s a relic from C, which doesn’t have any string type at all and uses char arrays instead. The null character is used to mark the end of a string; not a very wise decision in retrospect – most other string implementations use a dedicated counter variable somewhere, which makes finding the end of … Read more

Difference between Delphi and Delphi.NET

Delphi is the language and IDE to create native Windows, Mac and iOS applications. Delphi.NET is a deprecated version to generate .NET applications. The current alternative to create .NET applications using a Object Pascal syntax is use Embarcadero Prism.

Correct ‘in’ operator usage

Consider the following procedure in operator instead of if chain makes the code more compact and readable, but Delphi documentation is silent about it, and you should be aware of potential problems. The question is: should the in operator usage with constants only in brackets, for example be considered a good practice in Delphi?

What do I do when my program crashes with exception 0xc0000005 at address 0?

My Delphi program runs as an NT service and has been running fine for more than 2 months and then it stops suddenly and generates a crash dump: Faulting application name: tca_shctisvc_ip.exe, version: 7.1.0.1843, time stamp: 0x2a425e19 Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000 Exception code: 0xc0000005 Fault offset: 0x00000000 There were no … Read more