EAServer calls methods using a specific C calling convention. Follow these rules to ensure compatibility with the EAServer method calling convention:
Use extern C blocks – if using C++, make sure to declare your methods in an extern C block.
Always use CS_PUBLIC – on platforms such as Windows, the C compiler supports a broad collection of calling conventions for C functions. On these platforms, the CS_PUBLIC macro encapsulates the appropriate compiler keywords to ensure that the same calling convention is used by Jaguar and your methods. In the function prototype, insert CS_PUBLIC between the return type and the function name.
Copyright © 2005. Sybase Inc. All rights reserved. |