You receive a C4226 or a C4236 error message when you compile code to contain the keyword in 32-bit Visual C++ (107501)
The information in this article applies to:
- Microsoft Visual C++ 1.0
- Microsoft Visual C++ 2.0
- Microsoft Visual C++ 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q107501 SUMMARY The __export keyword provided with the Visual C++ for
Windows compiler is obsolete with the Microsoft Visual C++ 32-bit compiler. The
equivalent functionality for WIN32 can be achieved by using the keyword
__declspec with the dllexport attribute. With Visual C++ 32-bit Edition,
version 4.0, compiling code containing the __export (or _export) keyword
results in either of the following warnings: C4236:
nonstandard extension used : '__export' is an obsolete keyword, see
documentation for __declspec(dllexport) C4226: nonstandard extension used :
'__export' is an obsolete keyword Compiling code containing the
__export (or _export) keyword with 32-bit Visual C++, versions 1.0 and 2.x,
results in the C4226 warning.
REFERENCES For more information on exporting, query on the following
words in the Microsoft Knowledge Base:
__export and def and prolog and dllexport
For more information creating DLLs for WIN32 or on the
dllexport and dllimport storage class attributes, refer to Chapter 4 of the
"Programming Techniques" manual that ships with Visual C++ 32-bit Edition, or
search for dllexport or dllimport or export in the Visual C++ Books Online.
>From within the Visual Workbench, select Help and choose Keyword Search.
Modification Type: | Major | Last Reviewed: | 4/28/2005 |
---|
Keywords: | kbLangC KB107501 kbAudDeveloper |
---|
|