I have the following settings for a APIInfo dll project i have:
Compile RC: 4,O,$B\RC.EXE /v,1
Assemble: 3,O,$B\ML.EXE /c /coff /Cp /nologo /I"$I",2
Link: 7,O,$B\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /DLL /DEF:$6 /LIBPATH:"$L" /OUT:"$7",3,4
Res To Obj: rsrc.obj,O,$B\CVTRES.EXE,rsrc.res
The def file has to contain the library name and any functions that you are exporting (that will be visible and usable by other programs using the .dll once it is loaded) here is an example for the APIInfo.dll project, of which 3 functions are public and exported. APIInfo.def:
LIBRARY APIInfo
EXPORTS
pluginit
plugstop
plugsetup
I have a version info (Project->Versioninfo) and a manifest resource (Project->Resource)
The version info and manifest is kinda required nowadays to help prevent false positives with anti-virus programs
Resource ID of 1 is a MANIFEST type, which links to a APIInfo.xml file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Company.Product.Application"
type="Win32"
/>
<description>APIInfo</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
Forgot to add, you will prob need to modify an option in the Project->Project Options dialog. Check (make sure its ticked) the box at the top left that says Compile RC.
Now running the Make->Compile RC command it will include the version and manifest stuff in your dll, then run Make->Assemble and finally Make->Link. Or all at once with Make->Build option.
Hope that helps you.