Wed, 09/20/2000 - 07:42
Forums:
To whom may know: There is such declaration : Standard_EXPORT static void gpTest.... existing in the samples for MFC. The sample file is named SamplesGeometry. I don't know whether this declaration is specially focused on Open Cascade used or not. Does anybody can answer me or tell me why? Thank you very much.
Wed, 09/20/2000 - 08:19
Standard_EXPORT and Standard_IMPORT are OpenCascade define used to export methods or variable .
they were defined in order to use the same define on Windows and on Unix plate-formes.
You can see the real defintion in Standard_macros.hxx
Fri, 11/15/2002 - 20:14
The file mentioned "Standard_macros.hxx" is no longer distributed. Can someone please explain further whay Standard_EXPORT is needed.
Fri, 11/15/2002 - 21:38
For MFC users:
#if (!defined TK3DS_API)
#ifdef TK3DS_EXPORTS
#define TK3DS_API __declspec(dllexport)
#else
#define TK3DS_API __declspec(dllimport)
#endif
#endif
"dllexport" is the same kind of macro than Standard_EXPORT.
You see "Standard_EXPORT" in header files for DLLs.
The OS needs such definitions for finding the classes/functions in DLLs.
HTH,
Patrtik Müller
Tue, 11/19/2002 - 10:14
Hi,
Standard_Macro is still distributed but is in %CASROOT%/src/Standard/ ....
mbd