CompuServe Messages

__export … How

    09-Aug-93 11:44:04
Sb: #51044-__export … How
Fm: Julie Solon [Microsoft] 71075,107
To: Brian Wilson 75270,3652
PMJI, > the _export was used to export functions from a DLL without having to put it in the .DEF file Yes, this is the way that our 16-bit compilers work. The 32-bit compilers replace this with _declspec( dllexport ). The Win32 SDK linker doesn't support this, so you must use a DEF file, but the VC++ for Windows NT linker works beautifully, so no DEF files are needed. All you'll need to do is _declspec( dllexport ) int func( ); and this will "export" the DLL function named func() with return type int. Julie