After writing your DLL functions, you must export the functions that you want to be available to a calling application.
There are two steps involved: compiling your DLL functions as exportable functions and exporting them. You can do this in the following ways:
- If you flag a function with the _export keyword, it is compiled as exportable and is then exported.
- If you add the _export keyword to a class declaration, the entire class (data and function members) is compiled as exportable and is exported.
- If you do not flag a function with _export, use the appropriate compiler switch or IDE setting to compile functions as exportable. Then list the function in the module definition (.DEF) file EXPORTS section.
See Also