杂项
时间:2010-09-29 来源:Caterjava
What's the difference between vector and list in STL
A vector is a wrapper arround an array. This means it offers random access iterator that are very fast and can also be used when raw memory pointers are required.
A list is a wrapper for a linked list. This means that it is not continuous memory and random access ([]) is expensive. However, insertion and deletion is always in constant time, in constrast to vector that often require reallocation and copying when inserting or deleting.
what is DLLMain()? how is it called?
Generating an Import Library
For other programs to be able to use your DLL you need to provide an import library which can be linked to those programs (or other DLLs for that matter). The tool for generating import libraries from .def files is called dlltool and is discussed in