creation of DLL:
create a project with MFC AppWizard (dll)
in the .def file you name your entry's without arguments:
FUNCTION1
FUNCTION2
etc.
in the .cpp file write the functions:
int FUNCTION1( char* a , etc )
{
}
or if this does not work, try:
int __stdcall FUNCTION1( )
{
}
to minimize problems:
Use only capitals in your fuction names.
Link MFC staticly.