共用方式為


helpstringdll

Specifies the name of the DLL to use to perform document string lookup (localization).

[ helpstringdll(
   "string"
) ]

Parameters

  • string
    The DLL to use to perform document string lookup.

Remarks

The helpstringdll C++ attribute has the same functionality as the helpstringdll MIDL attribute.

Example

// cpp_attr_ref_helpstringdll.cpp
// compile with: /LD
#include <unknwn.h>
[module(name="MyLib", helpstringdll="xx.dll")];

[object, uuid("00000000-0000-0000-0000-000000000001")]
__interface IMyI 
{
   HRESULT xxx();
};

Requirements

Attribute Context

Applies to

class, interface, interface method

Repeatable

No

Required attributes

None

Invalid attributes

None

For more information, see Attribute Contexts.

See Also

Other Resources

IDL Attributes

Interface Attributes

Class Attributes

Method Attributes

Attributes Samples