This is an example of the XPE side of a call to the external C++ function own_func_fred

The external function own_func_fred expects two parameters, both integers. It combines them and returns a string.

	define proc own_func_fred

	define var str val1 val2

	val1 = 10
	val2 = 55

	str = own_func_fred(val1, val2)

A simple version of the external C++ function own_func_fred without error checks.

A more robust version of own_func_fred with error checks.