如果允许intenet网的接入访问,当然是3层的好
另外,如果用户的数量比较多,客户机的数量也不少的情况下,3层的维护比两层要简单

解决方案 »

  1.   

    编译开关了。
    Type Switch
    Syntax {$M+} or {$M-}
    {$TYPEINFO ON} or {$TYPEINFO OFF}
    Default {$M-}
    {$TYPEINFO OFF}
    Scope Local
    The $M switch directive controls generation of runtime type information (RTTI). When a class is declared in the {$M+} state, or is derived from a class that was declared in the {$M+} state, the compiler generates runtime type information for fields, methods, and properties that are declared in a published section. If a class is declared in the {$M-} state, and is not derived from a class that was declared in the {$M+} state, published sections are not allowed in the class.Note: The TPersistent class defined in the Classes unit of the VCL is declared in the {$M+} state, so any class derived from TPersistent will have RTTI generated for its published sections. The VCL uses the runtime type information generated for published sections to access the values of a component's properties when saving or loading form files. Furthermore, the Delphi IDE uses a component's runtime type information to determine the list of properties to show in the Object Inspector.There is seldom, if ever, any need for an application to directly use the $M compiler switch.