"Open File" dialog box
The top project name here is d-trinet, and the document extension name is .dtnand .csv.
To enable the open/save dialog box to support multiple extensions, the simplest way is to modify the idr_dtrinettype field in the resource file:
STRINGTABLE BEGIN IDR_MAINFRAME "D-TriNet" IDR_DTriNetTYPE "\nDTriNet\nD-TriNet\nD-TriNet Files(*.dtn;*.csv)\n.dtn;.csv\nDTriNet.Document\nD-TriNet.Document"END
The disad
() { - returnNametext; in } the the Public voidSetnametext (String nametext) { About This. Nametext =Nametext; the } the the PublicString Geturltext () { + returnUrltext; - } the Bayi Public voidSeturltext (String urltext) { the This. Urltext =Urltext; the } -}In a nutshell, the key is to implement the Extensionelement interface, and then implement your own ToXml method, which returns the XML string that will be extended as a ch
The so-called custom-made delete is to provide the target template with a free choice of the destructor interface, the advantage is that the smart pointer template can no longer only manage memory separately, we can also use it to manage the file pointers and other things. There are two ways to implement it, here we take the share pointer for example.1. Pass the template parameter of a class and give the vacancy a value, the template sets the class as
The preceding example shows that the self-contained verification method in validate is sufficient to meet General requirements. For special requirements, you can use addMethod (name, method, message) to add custom verification rules, the following example adds an extension Verification Method for regular expression verification:
The Code is as follows:
This example describes the PHP custom extension fetch function. Share to everyone for your reference, specific as follows:
More about PHP Interested readers can view the site topics: "PHP commonly used functions and skills summary", "PHP object-oriented Program Design Introductory Course", "PHP Mathematical Arithmetic Skills summary", "PHP Array" operation Skills Encyclopedia, "PHP Data structure a
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.