Udostępnij za pośrednictwem


GetExportPragmas

Adds pragmas for exporting functions.

function GetExportPragmas( );

Return Value

A string containing the export pragmas. Can be one of the following:

  • #pragma comment(linker, "/EXPORT:DllCanUnloadNow=_DllCanUnloadNow@0,PRIVATE")'

  • #pragma comment(linker, "/EXPORT:DllGetClassObject=_DllGetClassObject@12,PRIVATE")

  • #pragma comment(linker, "/EXPORT:DllRegisterServer=_DllRegisterServer@0,PRIVATE")

  • #pragma comment(linker, "/EXPORT:DllUnregisterServer=_DllUnregisterServer@0,PRIVATE")

Remarks

Call this function to add pragmas for exporting functions.

Example

oDllCanUnloadNow.StartPoint.Insert(GetExportPragmas() + "\r\n");
oCM.Synchronize();

See Also

Tasks

Creating a Custom Wizard

Concepts

Customizing C++ Wizards with Common JScript Functions

Designing a Wizard

Reference

comment (C/C+)

Other Resources

JScript Functions for C++ Wizards