Often only your program needs to access the data file(s) and they don't need to be changed by it. How do we stop users from deleting the files? One answer is to store the data file inside our executable (or in a DLL) as a custom (RCDATA) resource and to link the resource into...
The filter in this example provides additional methods to those inTSteamWrapper. We can also provide filters that override theReadandWritemethods to alter the way that files are written. Demo Code A demo program to accompany this article can be found in thedelphidabbler/article-demosGit repository ...
In order to use this DLL, we have to compile it by pressingCtrl+F9. This should create a DLL calledSimpleMessageDLL.DLLin your projects folder. Finally, let's take a look at how to call the DllMessage procedure from a statically loaded DLL. To import a procedure contained in a DLL, ...
Compile and run the application and move around the controls using theTabkey. You will see the name of each control displayed in the status bar as it becomes active. To see the problem use the mouse and click in either the memo or edit control. The status bar will change to show its ...
In fact, data objects use the same way of describing data formats as that used by the clipboard. A format may be one of the built-in ones such as CF_TEXT or an application defined format such as "Rich Text Format". The storage medium used to transfer the data Data can be delivered ...
On Windows 2000 you can right-click in Explorer to get the file properties on any file and can associate summary information to any type of files, including even text files. For Word or Excel documents (compound files) the summary information is a part of document itself. For other files ...
I use MFC VC++ 4.2.I have a main window and a few child windows. If I click a button on the main window, I must set the text of Static Text on the child windows.I have tried to cast it to CWnd but it still don't work....
"Object is currently in use elsewhere" error for picturebox "Parameter is not valid" - new Bitmap() "Recursive write lock acquisitions not allowed in this mode.? "Settings" in DLL project properties and app.config file "The function evaluation requires all threads to run" while accessing ...
Windows Explorer is what you use in the Windows operating system to browse for files and folders. You can create a similar structure with Delphi so that the same content is populated within your program's user interface. Common dialog boxes are used in Delphi toopen and save a file in an...
applications using Delphi, the TMemoField object is used to represent a memo field in a dataset. TMemoField encapsulates the fundamental behavior common to fields that contain text data or arbitrary length. In most databases, the size of the Memo field is limited by the size of the database...