// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
extern "C" 
{
__declspec(dllexport) int __stdcall add_c(int a, int b);
}
__declspec(dllexport) int __stdcall add_cpp(int a, int b);

int add_c(int a, int b)
{
    return a + b;
}

int add_cpp(int a, int b)
{
    return a + b;
}
