   creating dll and lib in Visual Studios .NET 2003
  heyim trying to create my own library that i can use as a sound manager and so on.  what im wondering is how i set up my project to create a dll and a lib file.  right now i can only choose to create one or the other. ive never made my own dll or liv so i dont know a lot about it but could someone help me out with thisthanks   
  When a MSVC DLL project is built it will build both the DLL and the LIB file for the DLL automatically by default.   ;  so if i just create an empty project and change the settings to compile to a dll it should make both the dll and libbecause ive tried a win32 project and set it to compile as a dll...and it only compiles a dll file and no lib....;  Did you actually export any functions? An import library won't be generated if there's nothing to import.   ;  i dont know how to export any functions...o rif i am or not...can you explain how to do this   ;  In order to export a function you declare it as __declspec(dllexport). If you look up dllexport in the MSDN documentation it should give you an explanation of how to use it.   ;  Here's a quick guide though pictures [smile]:  For a DLL:For a Static Library:When you make a DLL and follow those options I selected, you will get a mini guide in the generated code that shows how to create the DLL.When you make a static library like those options I selected, you just add in your .cpp and .h files and compile into the .LIB.Now when you make a .DLL there are a lot of gotcha's associated with it, so I'd reccomend you use a static lib to start out with, and once you get comfortable with using that, then you can switch over to a .DLL. Of course you'd prob need to make some test DLLs first, to fully get what happens when you use them and so on.   