Using BCB for multimedia database development It is often found that when you delete a record from the table, the size of the file is not reduced accordingly. This makes the table file more and more large after you insert the deletion multiple times. This behavior occurs because the Ttable control's Delete method does not actually delete records from the table, but only adds a deletion flag before the record. The table is compressed with a pack statem
Objective:
By establishing code specification, forming BCB Development Group Coding Convention, improving program reliability, readability, modification, maintainability, consistency, guaranteeing the quality of program code, inheriting software development results and making full use of resources. Improve the inheritance of the program, so that the results of work between developers can be shared.
Software coding should follow the following guideli
This article describes how to enhance the functionality of the NMSMTP control that sends e-mail in BCB, and to implement a mail-sending program with an identity authentication feature.
Keyword Esmtp,mime, identity authentication
Introduction
In order to suppress the spread of spam more effectively, most of the mail receiving and dispatching systems of most websites use the identity authentication function of ESMTP service. That is, the user needs t
INI file (xxx.ini), which is the system configuration file, used to save some configuration information of the system.
Using the INI configuration file
In BCB there is a Tinifile class, which provides the operation of the INI file, INI file a common configuration file format It also like the registry as the key and data items, the following is the contents of an INI configuration file, it has a key lastconfig, Under this key is a data item defaultdit,
Most BCB programmers may not care about TOOLSAPI for a lifetime, but if bored like me,
You may wish to play and discuss:
Look at the following program to change the IDE to a sample:
--->bcb5. 0
//---------------------------------------------------------------------------#include #pragma hdrstopUseres ("Nodebug.res");Usepackage ("VCL50.BPI");//---------------------------------------------------------------------------#include #include //-----------
Delphi/BCB/third-party tool usage skills
Warning excessive use of code skills may reduce code readability and maintainability. The content provided in this post is for technical reference only. Please use it as appropriate.
▲In the Code Editor, press Ctrl and scroll the scroll wheel to scroll a page each time.
▲In the code editor, you can press SHIFT + Ctrl + C to generate implementation code or declaration code for the defined class methods, or compl
displayed in the status, and there is a line number before each line of information, it starts from 0, right: P
However, we sometimes write these prompt messages dynamically, which should be written as follows:
StatusBar1-> Panels-> Items [1]-> Text = "Haha, this will get to know me ";
Why? First, StatusBar1 is the name of the status bar; Panels is the attribute of the status bar. The third method we just mentioned is to call the editor, instead of clicking "…" on the right of the property. So
Because the cstringlist of MFC is too simple to process files efficiently, cstringlistex is written based on the cstringlist by combining fast sorting, binary search, and memory ing. This class is highly efficient. It also reads more than 100 MB of files. The tstringlist of BCB is about 20 s (including processing), and The cstringlistex is only 3 ~ 4 seconds. You can try this type of effect in your project. Copyright: wxy3064one # 163.com
The source c
FM: http://www.189works.com/article-42035-1.html
How to Use codeguard in BCB
Author: Shenzhen insects from: Shenzhen wormhole netThis article from http://www.szbug.com/disparticle.aspID=4
I. Why do I write this article?When using bcb5 to write some programs, you need to check a lot of things, such as memory leaks and whether resources are released. After using many tools, you find that the tool of bcb5 itself-codeguard, it is very good and convenient
Before Delphi, please refer to the following section of the BCB anti-Replay Function in the same window as Delphi. I have never succeeded for a long time and have little knowledge of Delphi, more than enough. Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiDB/html/delphi_20061218170853237.html
// Anti-Reopen window
Bool OpenForm (tform * wform)
{
Int I;
Bool formexist;
If (wform = NULL)
Return false;
Formexist = false;
For (I = 0; I If (screen-
The following are precautions for release of BCB programs on the network. The information comes from the network.
Generally, we release the program as follows:In prject-> options-> compiler, click release,Remove the builder with runtime packages option from prject-> options-> packages.Remove the use dynamic RTL option from prject-> options-> linker.Then rebuildIt is best to use UPX to compress the EXE file.Effect: Green, applicable to general programs
Please refer to the table below.
Related article: Bcb/delphi related file name extension introduction
File
Product
Purpose
Defproj.opt
Delphi 1 only
Default Project options for the IDE
Delphi.dmt
Delphi 1 only
The file used to store menu templates
Delphi.dsk
Delphi 1 only
The default project Desktop file
Delphi.hdx
Delphi 1 and 2 only
The Multihelp i
Server
In the BCB 6 SP4 debugging pass, welcome prawns criticize correct.
OPENDIALOG1 Open JPEG image, Edit1 save image Address, Image1 display image//Other format image file is not tested, you can try.
Opendialog1->filename= ""; if (Opendialog1->execute ()) {edit1->text= opendialog1->filename; Image1->picture->loadfromfile (Edit1->text); }
Below: Save the image to the SQL Server database
if (! Edit1->text.isempty ()) {adoquery1->close (); Add Ado
In the past, programmers in the DOS platform to develop the application software, will use the open features of DOS, through the interrupt to write some special display effects, to give their own programs to add some interesting features. However, with the gradual use of Windows-oriented programming and visualization of the fourth generation of development tools, people are increasingly constrained by the unified programming style of Windows, and it becomes more and more difficult to use the ori
Because in the attempt to use BCB 4 to access Nameservice, encountered some strange problems, and Visibroker example can be used to bcc32 normal compilation, I decided to do a program from scratch to see where the problem. Toss all night, the conclusion is to do the server or not the CORBA Server Wizard good. (I still don't understand why?) )
1, file| New, Multitier,corba IDL File:
interface Order{string Name();};
Save As Order.idl
2, file| New, C
technique designed to mark memory locations as "not executable." If your processor does not support hardware-based DEP, it is a good idea to upgrade to a processor that provides execution protection. If DEP has closed the program, is it safe to run the program again? Safe, but to keep DEP turned on for that program. Windows can continue to detectAttempts to execute code from protected memory locations can help prevent attacks. If the program does not run correctly when DEP is turned on, you can
BCB Development Midas (DATASNAP) multi-tier applications
Author: vrknights Date: February 11, 2012
Many times we need to compile a program that allows multiple clients to access and manipulate the data in the database on the server. If the way you want to use it is not a Web site, there are usually two ways we can do it, 1. The client connects directly to the remote database, logs in and operates the data. 2. The client cannot directly connect to th
, and the DLL uses multiple copies, which makes BPL and the DLL in some aspects of the difference is very large.
Whether this type of file is in the source code library needs to be judged by its purpose, in general, the source code compiled BPL do not need to enter the library, but if this BPL is the IDE's expansion, may also need to enter the library, and if the Third-party component does not provide the source code only provides this file, then this file also need to go to the source code lib
, void*){return 1;}Long CALLBACK __declspec (dllexport) __stdcall Cplapplet (HWND hwndcpl,uint, Umsg,lparam lparam1,lparam lParam2){LPNEWCPLINFO Mycpl;//lpnewcplinfo structure can be viewed in CPL.H header fileLong result=0;Switch (UMSG)//Judge the message coming from{Case cpl_init://The first message that is generated when the control panel is tuned inResult=1;BreakCase cpl_getcount://The second message, which is generated when the control panel is tuned inResult=1;BreakCase cpl_inquire://The t
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.