jpluimers
I wish I had blogged about this a lot sooner, as then far less people would use var aFoo: array of TFoo as method parameters for results that are just out parameters and could be… … Read more
3 years ago in Delphi, Development, Software Development0
jpluimers
The Spring Framework for Delphi has some cool tuple support. The [WayBack] Tuple class has 3 create methods that build generic Tuple<> records with 2, 3 and 4 fields: [WayBack] class function Create<T1, T2>(const value1:… … Read more
3 years ago in Delphi, Development, Software Development, Spring4D0
jpluimers
The documentation simply states “no”, without explaining why. Luckily, there is [WayBack] David Heffernan at [WayBack] Delphi interface generic function – Is there a work around? – Stack Overflow Interfaces do not support generic parameterized… … Read more
3 years ago in Conference Topics, Conferences, Delphi, Development, Event, Software Development0
jpluimers
Interesting takeaway from [WayBack] DCOM calls from thread pool threads call CoInitialize* at the start, and call CoUninitialize before returning. Expensive, but necessary Related: [WayBack] 123683 – CoInitialize should be called at most once per thread… … Read more
3 years ago in .NET, C++, COM/DCOM/COM+, Delphi, Development, Software Development, Windows Development0
jpluimers
[WayBack] delphi – Is it possible to define {$IFDEF} for more than one directive at once? – Stack Overflow: use the {$IF Defined(xxx)} directive which allows boolean expressions like: {$IF Defined(xxx) OR Defined(yyy)} {$IF Defined(xxx)… … Read more
3 years ago in Delphi, Delphi 6, Development, Software Development0
jpluimers
There is very little information on how to use the XMLDoc documentation formatting in your Delphi source code. So here are some links for me to get started: [WayBack] XMLDoc Delphi source code documentation generation… … Read more
3 years ago in Delphi, Development, Software Development0
jpluimers
For my link archive: [Archive.is] “Delphi” “Data provider or other service returned an E_FAIL status” “NVARCHAR” – Google Search In this case it was while reading data. Cause yet unknown, as over time the error… … Read more
3 years ago in Delphi, Development, Software Development0
jpluimers
IDEs drive me nuts, including the Delphi IDE. Searching for Margin or Setting only reveals the margin and gutter setting, not the formatter settings. So you have to remember this is in the “Formatter”, especially… … Read more
3 years ago in Delphi, Development, Software Development0
jpluimers
Do not call SYS.DBMS_SESSION.SET_NLS with an instance of the [Archive.is] TOraStoredProc Class, as under the hood, it will translate the call to this: Class:Ora.TOraStoredProc;Component:sprSetNls;Flag:tfQPrepare,Text:Prepare: begin SYS.DBMS_SESSION.SET_NLS(:PARAM, :VALUE); end; :PARAM(VARCHAR[22],IN)=’NLS_NUMERIC_CHARACTERS’ :VALUE(VARCHAR[4],IN)=”.,” The above is a translation… … Read more
3 years ago in Database Development, Delphi, Development, OracleDB, Software Development0
jpluimers
I got this when taking over maintenance of some legacy code that called a stored procedure in a : ————————— Debugger Exception Notification ————————— Project LegacyProject.exe raised exception class Exception with message ‘Need Oracle 8… … Read more
3 years ago in Database Development, Delphi, Development, OracleDB, Software Development0
jpluimers
Since I keep forgetting about this, and there is the Embarcadero documentation for it has had no examples added in Delphi 2007 or later: [WayBack] Delphi Basics : FindCmdLineSwitch command Example code : Saerch the… … Read more
3 years ago in Delphi, Development, Software Development0
jpluimers
I have been bitten by this a few times too much, so time to write it down: When porting old Delphi code from the Delphi 7 and older era, the options were stored .dof (options)… … Read more
3 years ago in Delphi, Development, Software Development0