GetExportPragmas

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Adds pragmas for exporting functions.

  
function GetExportPragmas( );  
  

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")

Call this function to add pragmas for exporting functions.

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

Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard
comment (C/C++)

Show: