I have some existing VC++ code that I need to convert to a dll file. This system is composed of several files. I added the "extern c" and export definition file. The dll created fine. Every time I called a routine, it always executed the main (int main) function. I commented out this function and I get "error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup.