Original Post
Hello Let's say I have a project compiled as a DLL called "Display" which contains classes to handle windows and such. In this project, there's a class called "Size" which represents the width/height of, for example, a window. A method called Size::area() retrieves the area of the size object (width*height). If I implement this method in a .cpp file, but I don't declare the method (in the .h file) as using "__declspec(dllimport)", will it be compiled into the DLL or into the dll-linking .lib, like if I was building a static library? [EDIT] Let me make this clearer : 1- Does symbols not declared as "__declspec(dllexport)" get compiled into the dll-linking .lib? 2- If this is the case, is it possible to compile a DLL without any "__declspec(dllexport)" symbols and use it as a static library? Thanks! [Edited by - Trillian on June 29, 2007 12:04:54 PM]