Porting Programs from Another Platform to ILE
If you are developing new code, follow the ISO guidelines as much as possible and avoid platform-specific extensions. In general, your code should be portable.
This section describes:
- Limitations to porting code from C to ILE C++
- Modifying calls of ILE C++ objects
- Using BCD macros to port coded decimal objects to ILE C++
- Header files that work with both C and C++
- Handling the stricter C++ type checking
- Declaring
unsigned charpointers asunsigned charvariables - Initializing character arrays in C++
- Specifying access to string literals
- Avoiding uncaught C++ exceptions by scoping to a single activation group