DOC: GetProcAddress Does Not Support Ordinal Symbols

Last reviewed: February 6, 1997
Article ID: Q149515
The information in this article applies to:
  • Microsoft Visual C++, Macintosh Cross-Development, version 4.0

SUMMARY

GetProcAddress() returns NULL when passing a valid ordinal value for a DLL's exported function. The Macintosh Windows Portability Layer implementation of GetProcAddress() does not support obtaining exported function addresses by the function's ordinal value.

MORE INFORMATION

DLLs on the Macintosh are implemented using Code Fragment Libraries (CFM) on Power Macintoshes. Apple's implementation of CFMs only allows symbols to be exported by name. Therefore, you must use the exported function name to obtain the function address.


KBCategory: kbprg kbdocerr
KBSubcategory: MfcMac
Additional reference words: 4.00 WLM CFM DLL ASLM AFXDLL mac vcmac



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.