We're trying to call the following C function from COBOL:
unsigned int MagickSetResolution( MagickWand *wand, const double x_resolution, const double y_resolution );
This function is part of the GraphicsMagick Wand API. The problem is in the 'double' parameters. It's not possible to CALL using a variable declared as USAGE IS DOUBLE, this gives the following compiler error:
BY VALUE parameter WWK-RES-X illegal type
We tried a variety of different options, including PIC X(8) COMP-N, but nothing seems to work. Is calling this function even possible?
N.B. we're using the 32 bit runtime.