看到delphi中有 string 和 String 都是类型 。并且看帮助,应该是不一样;
但是没有看明白到底有什么区别;还有个问题 delphi中有没有类似 c语言的 strchr函数;

解决方案 »

  1.   

    >>看到delphi中有 string 和 String 都是类型 。并且看帮助,应该是不一样;
    Delphi也不去分大小写呀,怎么看出来不同的?
      

  2.   

    天...
    delphi什么时候开始分大小写了?
    &_&
      

  3.   

    我也知道delphi不分写,但是看到帮助是两个很纳闷!
    strchr我已经找到了delphi相同作用的函数,有点我一样,不过可以用
      

  4.   

    嗬嗬,你一定是看到了windows的帮助里面去了
      

  5.   

    哈哈
    pascal和
    c的区别
      

  6.   

    我 还是第一次听到有在DELPHI中String 和 string有区别的.
      

  7.   

    String . 强大的字符串类型...
      

  8.   

    String类型 也就那样了 没什么好看的
    其实要不是要用一些别人 or 已有的function
    我一般就只用几个基本类型
      

  9.   

    he String structure depicts the organization of data in a file-version resource. This structure is not a true C-language structure because it contains variable-length members. This structure was created solely to depict the organization of data in a version resource and does not appear in any of the header files shipped with the Microsoft?Win32?Software Development Kit (SDK). The String structure contains a string that describes a specific aspect of a file. String {  
        WORD   wLength; 
        WORD   wValueLength; 
        WORD   wType; 
        WCHAR  szKey[]; 
        WORD   Padding[]; 
        String Value[]; 
    } String; 
     MemberswLengthSpecifies the length of the version resource. wValueLengthSpecifies the length of the Value member in the current VS_VERSION_INFO structure. This value is zero if there is no Value member associated with the current version structure. wTypeSpecifies the type of data in the version resource. This member is 1 if the version resource contains text data and 0 if the version resource contains binary data. szKeySpecifies an arbitrary Unicode string. The szKey member can be one or more of the following values. These values are guidelines only. String Meaning
    Comments The Value member contains any additional information that should be displayed for diagnostic purposes. This string can be an arbitrary length.
    CompanyName The Value member identifies the company that produced the file. For example, "Microsoft Corporation" or "Standard Microsystems Corporation, Inc." 
    FileDescription The Value member describes the file in such a way that it can be presented to users. This string may be presented in a list box when the user is choosing files to install. For example, "Keyboard driver for AT-style keyboards" or "Microsoft Word for Windows". 
    FileVersion The Value member identifies the version of this file. For example, Value could be "3.00A" or "5.00.RC2".
    InternalName The Value member identifies the file's internal name, if one exists. For example, this string would contain the module name for Windows dynamic-link libraries (DLLs), a virtual device name for Windows virtual devices, or a device name for MS-DOS device drivers. 
    LegalCopyright The Value member describes all copyright notices, trades, and registered trades that apply to the file. This should include the full text of all notices, legal symbols, copyright dates, trade numbers, and so on. In English, this string should be in the format "Copyright Microsoft Corp. 1990-1994".
    LegalTrades The Value member describes all trades and registered trades that apply to the file. This should include the full text of all notices, legal symbols, trade numbers, and so on. In English, this string should be in the format "Windows is a trade of Microsoft Corporation".
    OriginalFilename The Value member identifies the original name of the file, not including a path. This enables an application to determine whether a file has been renamed by a user. This name may not be MS-DOS 8.3-format if the file is specific to a non-FAT file system. 
    PrivateBuild The Value member describes by whom, where, and why this private version of the file was built. This string should only be present if the VS_FF_PRIVATEBUILD flag is set in the dwFileFlags member of the VS_FIXEDFILEINFO structure. For example, Value could be "Built by OSCAR on \OSCAR2".
    ProductName The Value member identifies the name of the product with which this file is distributed. For example, this string could be "Microsoft Windows". 
    ProductVersion The Value member identifies the version of the product with which this file is distributed. For example, Value could be "3.00A" or "5.00.RC2". 
    SpecialBuild The Value member describes how this version of the file differs from the normal version. This entry should only be present if the VS_FF_SPECIALBUILD flag is set in the dwFileFlags member of the VS_FIXEDFILEINFO structure. For example, Value could be "Private build for Olivetti solving mouse problems on M250 and M250E computers".
     PaddingContains as many zero words as necessary to align the Value member on a 32-bit boundary. ValueSpecifies a zero-terminated string. See the szKey member description for more information.  ResA String structure may have an szKey value of, for example, "CompanyName" and a Value of "Microsoft Corporation". Another String structure with the same szKey value could contain a Value of "Microsoft GmbH". This might occur if the second String structure were associated with a StringTable structure whose szKey value is 040704b0 ?that is, German/Unicode. The code page can be set to 1200 (decimal) or 0x04b0 (hexadecimal) to indicate Unicode. The code page can also be set to the value that is appropriate for the language component. After you choose the value for the code page you should continue to use the same value in later revisions to the file. See AlsoStringTable, VS_FIXEDFILEINFO, VS_VERSION_INFO
      

  10.   

    typedef [ string [ , type-attribute-list ] ] type-specifier declarator-list; typedef struct-or-union-declarator {
    [ string [ , field-attribute-list ] ] type-specifier declarator-list;
    ...}[ string [ , function-attribute-list ] ] type-specifier ptr-decl function-name(
    [ [ parameter-attribute-list ] ] type-specifier [declarator]
    , ...
    );
    [ [ function-attribute-list ] ] type-specifier [ptr-decl] function-name(
    [ string [ , parameter-attribute-list ] ] type-specifier [declarator]
    , ...
    );type-attribute-listSpecifies one or more attributes that apply to a type. Valid type attributes include handle, switch_type, transmit_as; the pointer attribute ref, unique, or ptr; and the usage attributes context_handle, string, and ignore. Separate multiple attributes with commas.type-specifierSpecifies a base_type, struct, union, or enum type or type identifier. An optional storage specification can precede type-specifier.declarator and declarator-listSpecify standard C declarators, such as identifiers, pointer declarators, and array declarators. For more information, see 
    pointers and arrays. The declarator-list consists of one or more declarators separated by commas. The parameter-name identifier in the function declarator is optional.struct-or-union-declaratorSpecifies a MIDL struct or union declarator.  field-attribute-listSpecifies zero or more field attributes that apply to the structure, union member, or function parameter. Valid field attributes include first_is, last_is, length_is, max_is, size_is; the usage attributes string, ignore, and context_handle
    , the pointer attribute ref, unique, or ptr, and the union attribute switch_type. Separate multiple field attributes with commas.function-attribute-listSpecifies zero or more attributes that apply to the function. Valid function attributes are callback, local; the pointer attribute ref, unique, or ptr; and the usage attributes string, ignore, and context_handle.ptr-declSpecifies an optional pointer declarator to which the string attribute applies. A pointer declarator is the same as the pointer declarator used in C; it is constructed from the * designator, modifiers such as far, and the qualifier const.function-nameSpecifies the name of the remote procedure.parameter-attribute-listConsists of zero or more attributes appropriate for the specified parameter type. Parameter attributes can take the directional attributes in and out; the field attributes first_is, last_is, length_is, max_is, size_is, and switch_type; the pointer attribute ref, unique, or ptr; and the usage attributes context_handle and string. The usage attribute ignore cannot be used as a parameter attribute. Separate multiple attributes with commas. Example/* a string type that can hold up to 80 characters */  
    typedef [string] char line[81]; 
     
    void Proc1([in, string] char * pszName); 
     ResThe string attribute indicates that the one-dimensional char, wchar_t, byte (or equivalent) array or the pointer to such an array must be treated as a string.
    The string can also be an array (or a pointer to an array) of constructs whose fields are all of the type "byte."
    If the string attribute is used with an array whose bounds are determined at run time, you must also specify a size_is or max_is attribute.
    The string attribute cannot be used with attributes that specify the range of transmitted elements, such as first_is, last_is, and length_is.When used on multidimensional arrays, the string attribute applies to the rightmost array.
    To define a counted string, do not use the string attribute. Use a character array or character-based pointer such as the following:typedef struct {  
        unsigned short size; 
        unsigned short length; 
        [size_is(size), length_is(length)] char string[*]; 
    } counted_string; 
     The string attribute specifies that the stub should use a language-supplied method to determine the length of strings.
    When declaring strings in C, you must allocate space for an extra character that s the end of the string.See Alsoarrays, char, wchar_t
      

  11.   

    现在的delphi和cb的help同一个系统,不小心会看到加别的
    而且还有些windows的api...
      

  12.   

    integer和Integer也是一个类型的哈