Delphi XE3 in the use of the process, found that the code automatically prompts the function is often invalid, do not prompt, bugs, to the programmer code is a great deal of trouble, in response to this, come up with the following solutions:
1.
The following code is executed correctly in the EXE. However, in the DLL FindResource returned a value of 0, I use:: GetLastError (), the value is 1813, that is, not access to resources, this is why?
BOOL extractfile (char *szzlibfile,dword dwrid)
These two messages are odd, and although you can find their definition, they seem to be useful, but they can't be received.
If you want to handle these two messages, you need to manually add them to the WM_MOUSEMOVE message handler:
To add a
If you use the DDX mechanism, you typically set the initial value of the dialog object member variable in the OnInitDialog handler or dialog constructor. Before the dialog box is displayed, the frame's DDX mechanism transmits the value of the member
Recently, you need to manipulate the registry in the program you write. Summarize some experience, and make a demo for later use, now take it out and share with you ...
For ease of use, some operations are written as functions to facilitate
Tmemorystream Position changes, I once thought that its Memory properties will also change; Only blame does not look at the source, only take for granted!
Procedure Tform1.formcreate (sender:tobject);
var
stream1,stream2:tmemorystream;
A few days ago found that your program used modeless dialog box, the debug version has a warning prompt as follows:
Warning:calling DestroyWindow in Cwnd::~cwnd OnDestroy or PostNcDestroy in derived class won't be called
Because it is warnning, do
First, ask questions
When I translated the Json-rpc Jsonobject into the Delphi code, I came across the following statement:
1 method[] methods = Klass.getmethods ();2..3 method = Methods[i];4..5 if (key.length () > 0 &&6 character.isuppercase
However, in the current example, the class Ctview of the current object does not overwrite the function, so the CWnd WindowProc is invoked.
This function gives the next work to the ONWNDMSG function to handle. If the onwndmsg is not processed, it
First, Delphi and Delphi Programming Environment Introduction
1.Delphi Introduction
2.DELPHI5 Integrated Development Environment (IDE)
3.delphi5 's Cell file
4.Delphi 5 Enterprise Edition 10 major features
Second, the use of Delphi common
A new CONTNRS unit has been added to the VCL from Delphi 5, and 8 new classes have been defined in the unit, all of them are standards-based tlist classes.
Tlist class
The Tlist class is actually a container class that can store pointers, provides
This example demonstrates how to force a redraw of an area of a window. Sometimes this is needed, such as when you use the LockWindowUpdate API function to speed up the data loading of a control.
Create a new project and add a module with the
PaintPicture is VB4 new graphics image processing method, its basic function is image block transmission, in the previous version of VB to produce block transmission effect, need to use win? Block transfer function Bitbltapi call in Dowsgdi.
VB6 has a new feature that allows you to add controls dynamically without the control array:
Object. ADD (ProgID, name, container)
Parameter description
Required for Object. An object expression whose value is an object in the Applies To list.
Enter an array of positive integers, combine all the numbers in the array into a number, and print the smallest of all the numbers that can be stitched together. For example, enter the array {3,32,321}, then print out the minimum number that these
Transferred from: http://www.cnblogs.com/kaituorensheng/archive/2013/02/23/2923877.htmlBasic IdeasAssuming that the number of elements in the sequence is less than the number of element A is n, the A is placed directly on the first n+1 position.
Write a simple framework, refer to the ERP system written, can use two layer (CLIENT+DB), or three layer (CLIENT+APP+DB) mode of operation, non-COM + mode.Haha, login good vulgar ...Multi-lingual, Unicode-enabled, unlike Delphi2000, is always
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service