Original Post
Is there a way to prevent the visual studio 2003 .NET optimizer from ignoring source files that it believes are completely unused? I have tried disabling some of the optimizer features but they did not seem to work. There may have been lingering intermediate files, but I wondered if anyone knew how to solve this problem offhand? I am working in C++, building a win32 executable project, and have a number of dll-exported functions in a file that are never actually called within my application. However, they can be accessed by using GetProcAddress to locate the function addresses. When built, those functions are not exported (according to a PE viewer). It seems that the only way to get them to 'exist' is to place some variable or function in that same source file that the program actually uses when following an ordinary path. EDIT: many other functions in other files are correctly exported. It is simply a matter of visual studio skipping over some source files that it thinks contain no used code. [Edited by - nihilisticod on February 27, 2008 11:38:19 AM]