To Create a .dll such as the dcc.dll Create a .cpp with modules (not all modules need to be declared as exported). No main needed Create a .def file (see template) to declare the modules to export Hints: EXPORTS needs to be in all capitals When names all this stuff be consistant in workspace names filenames and the library names. .def template LIBRARY "Dcc.dll" EXPORTS DCC_open @1 DCC_close @2 DCC_motor @3 DCC_Estop @4 DCC_function @5 DCC_kill @6 DCC_reset @7 File--> New --> Win32 Dynamic Link Library choose "empty dll" Project -->Add to projects -->Files .cpp .def For some .dll you may need to go into the project settings and change them to sharred dll. Build--> Build dll This creates a .dll file and .lib file in the debug directory Using it in a C++ program is easy 1. Project -->AddToProject-->Files .lib (made when .dll was created) .dll (a. the .dll much be in the same directory as the .exe or b. a directory in the system path given by a path variable c. \Windows\system directory hint: just put it where the .exe is otherwise it won't run