Let's say you are working with test.cpp.
Within test.cpp you would have a couple functions - declare them like this:
extern "C" int FAR PASCAL EXPORT
test_MyFunc( char* MyChar )
{
//your code here
}
extern "C" int FAR PASCAL EXPORT
test_MyNextFunc( char* pMyChar, int iMyVar )
{
//your code here
}
Now to your .def file.
Paste between the section between the
************** to your file.
//**************
; test.def : Declares the module parameters for the DLL.
LIBRARY "test"
DESCRIPTION 'test Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
test_MyFunc @1
test_MyNextFunc @2
//you'd keep adding functions @3, @4 etc. as your dll grows
//**************
You also need to make the appropriate changes to your project settings.
Do you need more detail?
Hope this helps.