A modern C++ interface to the Microsoft Excel SDK.

If you need the highest possible performance calling your C/C++ native code from Excel this is the library for you.

#include <cmath>
#include "xll/xll.h"

static xll::AddIn xai_normal_cdf(
	xll::Function(XLL_DOUBLE, "?xll_normal_cdf", "NORMAL.CDF")
	.Arg(XLL_DOUBLE, "x", "is the argument.")
	.FunctionHelp("Return the normal cumulative distribution function.")
		Implementation of NORMSDIST using erf.
double WINAPI xll_normal_cdf(double x)

	return (1 + erf(x/sqrt(2)))/2;

Last edited Feb 1, 2014 at 9:24 PM by keithalewis, version 9