The Delphi library functionAllocateHWndis used to create a hidden window for us and the relatedDeallocateHWnddisposes of the window when we've finished with it. A hidden window requires a window procedure.AllocateHWndenables us to use a method as a window procedure where Windows normally requires ...
It's much simpler to create a resource file that is identified by an ordinal (e.g.200) than it is to create one identified by a string (e.g.'MY_RESOURCE'), since the resource header records are a fixed size in the first case and are variable in the second case. We will only co...
On some occasions, when using aTWebBrowser, I've needed to use Delphi to call JavaScript functions contained in the current document. This is quite easy to do. We'll first examine the techniques then we'll look at a case study that changes the font in an HTML document. ...
they can be used in assignments to provide a kind of table. However, don't forget that case statements are much more powerful than simple array or hash lookups. Such a table doesn't necessarily need to use literals in thewhenclauses. ...
Call a Delphi DLL String with C# DllImport and MarshalAsAttribute - returned value is half size/incomplete. call a function from Form to another form using C# Call a Generic extension method with a dynamic Type Call a program via windows service Call a WEB API Synchronously Call event handl...
System.SysUtilslibraries. These all methods are easy to use and easy to get or set file path strings in that operating system. These can be used with other component properties likeFileNameproperty ofOpenDialog, SaveDialogcomponents. We can also check drive, files or directories if they are ...
I have been trying to learn [the basics of] Direct2D in C++, and I came across this methodCopyFromMemorywhich seems like a perfect thing for me to use to modify individual pixels: I can modify the buffer and then call the method....
Some of the use case needs to view the Multi Details Appearance for a List item in a ListView .e.g Selecting Multiple items Add or Delete from a List with Multi Detail information.Delphi/C++ Builderoffers robust components to do the job at design time or runtime with less code a...
First, you need to wrap theTdxSpreadSheetFormulaEnumReferencesProcmethod interface exposed as theInvokemethod. C++ __interface TdxSpreadSheetFormulaEnumReferencesProc;typedefSystem::DelphiInterface<TdxSpreadSheetFormulaEnumReferencesProc> _di_TdxSpreadSheetFormulaEnumReferencesProc; __interface TdxSpreadSheetFormulaEn...
why use LoadLibraryEx instead of LoadLibrary ? you're not using the other parameters anyways. Because I felt like it :/ Quote Also, to make the code more tidier, i would use switch/case and instead of the prototype, just bring the block of code above the defined entry-point lol. ...