zoukankan      html  css  js  c++  java
  • DELPHI之备忘(二)

    1. DLL的资源释放问题

    EXITPROC

    这种释放方式不能在动态载入下用,即loadLibrary方式载入,HELP帮助说明如下:

    Do not use ExitProc in a dynamically loaded package. This procedure is called when the process halts, not when a package or DLL is unloaded. If you set ExitProc from a package or DLL, it may interfere with the ExitProc of the host executable. Because ExitProc is not compatible with packages, it is recommended that you add code to the finalization section of a unit instead. Inside a DLL, you can use the DLLProc variable instead.

    应该用单元里面加initialization和finalization来控制

    2. DLL引用传入的Tquery组件应注意Close和UnPrepare,如下:

    其中InitDriver是导出函数

    Tquery

    3. 变体记录

    变体记录

    变体记录使用能够容纳可变部分最大长度的空间来存储!而CASE不占存储,只是用来判别可变部分的类型。

    CASE TAG:INTEGER OF.....  VAR.TAG :=1;其实是没有效果的!
    4.GRID 右键选中 并显示右键菜单

    GRID右键菜单

    5.结构体指针的NEW和DISPONSE方法 
    暂缺
    6.opendialog会影响系统当前工作目录,即不能用'.\file'而要用ExtractFileDir(Application.Exename)+'file';

  • 相关阅读:
    http://www.sqlservercentral.com/Forums/Topic6111071461.aspx
    SQL 2012 New Location for Query Templates
    How to Share Data between Stored Procedures
    DB Development Standard summary
    fn_SplitStringToTable
    PowerShell Database Server Disk Space Checking
    IIS支持htaccess的Rewrite3配置过程
    html select按纽代码
    jquery插件集 HA
    HTML基础特殊字符(易记版) HA
  • 原文地址:https://www.cnblogs.com/enli/p/1356744.html
Copyright © 2011-2022 走看看