функцию написал в Borland Builder C++, может там накосячил. file.h:
#ifndef _MYDLL_H
#define _MYDLL_H
#ifdef __DLL__
#define DLL_EI __declspec(dllexport)
#else
#define DLL_EI __declspec(dllimport)
#endif
extern "C" void DLL_EI prosto(int,int,int,int,int);
#endif
file.cpp:
#include <vcl.h>
#include <windows.h>
#pragma hdrstop
#pragma argsused
#include "file.h"
void prosto(int a1,int a2,int a3,int a4,int a5)
{
int xx=0;
xx=a1+a2+a3+a4+a5;
}