// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
extern "C"
{
    __declspec(dllexport)void fooptr(int* x);
    __declspec(dllexport)void fooref(int& x);
}

__declspec(dllexport) void fooptr(int* x)
{
    *x = 123;
}

__declspec(dllexport) void fooref(int& x)
{
    x = 456;
}
